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
When the abi.decode function decodes a struct along with one or more other values, the type of the tuple on the left-hand side contains an instance of Structure, but I expect the tuple variables's type field to contain only instances of Types.
Instead of containing a Structure instance, the list should contain a UserDefinedType instance whose type field is a Structure instance.
Yes, it looks like singletons are handled correctly and lists of types should be handled using the same logic.
0xalpharush
changed the title
[Bug-Candidate]: Type of tuple result of ABI-decode contains instances of Structure
[Bug]: Type of tuple result of ABI-decode contains instances of Structure
May 19, 2023
Describe the issue:
When the
abi.decode
function decodes a struct along with one or more other values, the type of the tuple on the left-hand side contains an instance ofStructure
, but I expect the tuple variables'stype
field to contain only instances ofTypes
.Instead of containing a
Structure
instance, the list should contain aUserDefinedType
instance whosetype
field is aStructure
instance.Code example to reproduce the issue:
Version:
0.9.3
Relevant log output:
The text was updated successfully, but these errors were encountered: