unity-web3-game-kit
unity-web3-game-kit copied to clipboard
ExecuteContractFunction gives transaction error
The latest SDK version cannot execute transactions. I've tried with 3 different projects, it doesn't execute the function with this version unfortunately. I've tried with the 1.2.2 version and it works with the 3 projects.
https://user-images.githubusercontent.com/21266228/187968322-08657526-7156-47e9-92f7-c75ec64410d6.mp4
@MarlonDSC did you modify (add more gas) on the recent sdk version ExecuteContractFunction
try it again and before confirming the transaction, raise the gas a bit higher. and also make a video for it
@MarlonDSC did you modify (add more gas) on the recent sdk version
ExecuteContractFunction
try it again and before confirming the transaction, raise the gas a bit higher. and also make a video for it
Yes I did
@MarlonDSC Also make sure that you are meeting all permissions requirements in the contract method being called.
The RPC error is returned by the wallet due to:
- Not enough gas
- Incorrect parameter types
- Execute permissions on the target contract / function for the wallet address
- Asserts / conditions in the function that are not met by the wallet address / contract conditions / parameter values
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.