MoralisWeb3/unity-web3-game-kit

ExecuteContractFunction gives transaction error

MarlonDSC opened this issue · 4 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.

WhatsApp.Video.2022-09-01.at.12.35.32.PM.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:

  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
stale commented

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.