WalletConnect / Web3ModalFlutter

The Web3Modal for WalletConnect built using Flutter.
https://pub.dev/packages/web3modal_flutter
Apache License 2.0
27 stars 30 forks source link

Getting invalid argument error for parameters field when using requireWriteContract #113

Closed arrayappy closed 3 weeks ago

arrayappy commented 4 weeks ago

Describe the bug We are working on a flutter app and working with WalletConnect. We are facing issue calling write contracts. I’m trying to call this payable smart contract function, but It is not working. Error: Invalid argument (params): Must match function parameters: 3 I tried with 1 parameter and 3 parameters as well. Facing the same issue. When I verify even in abi, it only takes on parameter with uint256 type.

Additional context telegram-cloud-photo-size-5-6134025911251616955-y

quetool commented 4 weeks ago

Hello @arrayappy, without any more context I can't help. Can you share the ABI file and contract address by any chance? Or at least the joinPublicChallenge function declaration?

quetool commented 3 weeks ago

Hello @arrayappy, I saw you closed the issue. Is it solved? Let me know if you need any more help.

arrayappy commented 3 weeks ago

Parameters issue was resolved but later faced issue with redirecting to Metamask. Used this below logic to make it work.