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 current inputs and outputs params for Function and Event are Vec<Param>, but the problem is that, if the Param is a tuple, then will lose name and internal_type information about the elements in this tuple.
This abi can be parsed fine, but the problem is that the current ParamType for tuple is Tuple(Vec<ParamType>). So this means I cannot get the elements' names blockType and blocks.
Those information is important in my use case, I would like to suggest to change the ParamType::Tuple(Vec<ParamType>) to ParamType::Tuple(Vec<TupleParam>), in this way, users can get the name and internal type information.
The text was updated successfully, but these errors were encountered:
al8n
changed the title
Support field information in nested tuple field.
feat: support field information in nested tuple field.
Jun 28, 2023
al8n
changed the title
feat: support field information in nested tuple field.
feat: support field information in tuple field.
Jun 28, 2023
al8n
added a commit
to al8n/ethabi
that referenced
this issue
Jun 28, 2023
The current inputs and outputs params for
Function
andEvent
areVec<Param>
, but the problem is that, if theParam
is a tuple, then will lose name and internal_type information about the elements in this tuple.For example, if I have an abi like.
This abi can be parsed fine, but the problem is that the current
ParamType
for tuple isTuple(Vec<ParamType>)
. So this means I cannot get the elements' namesblockType
andblocks
.Those information is important in my use case, I would like to suggest to change the
ParamType::Tuple(Vec<ParamType>)
toParamType::Tuple(Vec<TupleParam>)
, in this way, users can get the name and internal type information.The text was updated successfully, but these errors were encountered: