-
Notifications
You must be signed in to change notification settings - Fork 441
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
calling a payable function with parameters #2
Comments
Hello @ungaro First of all you should understand that if the function is mutating (like one above) you are not guaranteed that a return value will in fact be the same when you check for it and when transaction executes.
I recommend you to go through the tests of web3swift to check the examples. Sincerely, Alex |
Can you give example how to trap error from a send call based on this? Not familiar with the way you have used Result.
|
You almost have made it right
P.S. Sorry, don’t have markdown on a phone |
@blockcowboy did you solve your task? |
It seems that the issue is resolved, so its closed |
Fixed erc20 precompiled contract
fix: createNewAccount always non-hardened derivation
i'm struggling to find an example to use a payable function with parameters.
let's say i've an function in my Smart Contract:
How do i call this SC and send ethers to it & pass parameters and get the return value?
Thanks.
The text was updated successfully, but these errors were encountered: