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

Pass Struct Arguments as Array #78

Open
zakrad opened this issue Dec 27, 2024 · 3 comments
Open

Pass Struct Arguments as Array #78

zakrad opened this issue Dec 27, 2024 · 3 comments

Comments

@zakrad
Copy link

zakrad commented Dec 27, 2024

I’m receiving invalid tuple value (argument="tuple", value="[1,2,3]", code=INVALID_ARGUMENT, version=abi/5.7.0) when trying to pass a struct with uint256 fields as an array or object. Is there a specific format for passing struct params?

@adrianmcli
Copy link
Owner

adrianmcli commented Dec 27, 2024

Check this issue out: #7

Let me know if you need more help, happy holidays!

@zakrad
Copy link
Author

zakrad commented Dec 28, 2024

Thanks, my issue is on encode part for input
Screenshot 1403-10-08 at 11 44 58

@adrianmcli
Copy link
Owner

Ah, I see. So the issue looks to be some kind of parsing of the tuple/array. I don't have bandwidth to look too deeply into this right now, but here is where I would start: https://github.com/adrianmcli/eth95/blob/master/src/app/features/function-call/useCallFunction.ts

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