-
Notifications
You must be signed in to change notification settings - Fork 88
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
web3 can't work with abitype Tuple #260
Comments
I haven't used structs, but maybe try setting the experimental flag and passing in the struct name with the parameters like here: https://ethereum.stackexchange.com/questions/65980/passing-struct-as-an-argument-in-call |
Could you maybe provide an example of what you mean? I had already included the pragma abiencoderv2 in my smart contact |
I was thinking something like it has in that stackoverflow: |
Ok I'm still not sure what you mean exactly. Here's what I have now:
With abi:
I deployed this to here: And I'm calling this by doing:
Which results in the following error:
From Etherscan I can do the following which works: |
I have since written my own Web3Cli to basically be able to pass structs to a constructor of a smart contract or a function. For this library it could be useful as a first idea too. |
I'm currently working on a SmartContract that has the following method:
I tried calling this function however web3 shows the following error:
The text was updated successfully, but these errors were encountered: