You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The ´verify´ method doesn't use any parameters. What is the best / recommended way that I can securely obtain the amount that the user is trying to transfer from a contract? In other words, how can I get the parameters of the ´transfer´ invocation that triggered the ´verify´ method on my smart-contract?
Thanks
The text was updated successfully, but these errors were encountered:
It can have parameters if you need, nothing forbids/prevents that.
What is the best / recommended way that I can securely obtain the amount that the user is trying to transfer from a contract?
The problem though is that your verify parameters and transfer parameters are completely different unrelated things, so you can only get transfer parameters if you're to very carefully parse tx.Script in verify. Related: #2577.
Hi,
The ´verify´ method doesn't use any parameters. What is the best / recommended way that I can securely obtain the amount that the user is trying to transfer from a contract? In other words, how can I get the parameters of the ´transfer´ invocation that triggered the ´verify´ method on my smart-contract?
Thanks
The text was updated successfully, but these errors were encountered: