You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The cosole gives me Uncaught Error: invalid solidity type!: tuple. I tryed with and without JSON.stringify.
Ideally I would need access something like web3.eth.abi.encodeParameters, but I don't see such a element in the web3 object provided by metamask.
Note: web3js support this feature since version 1.0.0-beta.36, when it pulled the abiEncoder from ethers.js.
Any plan to support structures in calls anytime soon?
Additional Infos
I am using metamask 4.12.0 on chrome
The text was updated successfully, but these errors were encountered:
Amxx
changed the title
Call methods with struct parameters (ABIEncoderV2
Call methods with struct parameters (ABIEncoderV2)
Oct 5, 2018
We do not currently support web3 1.0 since it depends on subscriptions & websockets. If their feature was added by including ethers.js, you could probably encode these parameters using the ethers.js library.
What problem are you trying to solve?
I am trying to call a smart contract's method which arguments are/contain structs.
Contract is loaded and called using:
Here is the relevant part of the ABI (description of myMethod)
The cosole gives me
Uncaught Error: invalid solidity type!: tuple
. I tryed with and without JSON.stringify.Ideally I would need access something like
web3.eth.abi.encodeParameters
, but I don't see such a element in the web3 object provided by metamask.Note: web3js support this feature since version 1.0.0-beta.36, when it pulled the abiEncoder from ethers.js.
Any plan to support structures in calls anytime soon?
Additional Infos
I am using metamask 4.12.0 on chrome
The text was updated successfully, but these errors were encountered: