Skip to content
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

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

Closed
arrayappy opened this issue Apr 20, 2024 · 3 comments

Comments

@arrayappy
Copy link

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
Copy link
Collaborator

quetool commented Apr 20, 2024

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
Copy link
Collaborator

quetool commented Apr 23, 2024

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

@arrayappy
Copy link
Author

arrayappy commented Apr 23, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants