Hi I’ve alredy read this post How to access asset URL in PyTeal? - #4 by fabrice but I don’t get it. I’m gettiing the error with this condition AssetParam.reserve(Txn.assets[0]).value() == Txn.sender()
I don’t really know what the scratch space should needed for or how to check that condition. Can sombody help me?
Okay thanks I got it. Only a question. If I uses a cond statement to choose what function use, then inside that function i use the Assert(AssetParam.reserve(Txn.assets[0]).value() == Txn.sender()) so now I have done this:
`assetReserve = AssetParam.reserve(Txn.assets[0])
That is putted outside the function (I think that this is the only way to put it, right?). But my question is if I don’t pass any foreign assets to the application, what will happen? Or are the assignments used only when the main one is called.
my final verision is something like this: Assert(reserve == Txn.sender())