unity-web3-game-kit icon indicating copy to clipboard operation
unity-web3-game-kit copied to clipboard

ExecuteContractFunction gives transaction error

Open MarlonDSC opened this issue 2 years ago • 3 comments

WhatsApp Image 2022-09-01 at 12 38 31 PM 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 avatar Sep 01 '22 16:09 MarlonDSC

@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

0xPr0f avatar Sep 08 '22 11:09 0xPr0f

@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 avatar Sep 09 '22 14:09 MarlonDSC

@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:

  1. Not enough gas
  2. Incorrect parameter types
  3. Execute permissions on the target contract / function for the wallet address
  4. Asserts / conditions in the function that are not met by the wallet address / contract conditions / parameter values

xactant avatar Sep 19 '22 10:09 xactant

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.

stale[bot] avatar Nov 18 '22 11:11 stale[bot]