Closed antazoey closed 2 years ago
closing as I realize I just need to convert the tuple
Does it support decode on the data for type mystruct[]
with unknown length
struct myStruct { address, uint256, address }
closing as I realize I just need to convert the tuple
meaning?
meaning?
I don't fully remembers, probably had to go from tuple[2]
to (uint256,address)[2]
or something like that, using the ABI structure. The linked PR a few comments up probably contains the exact answer but that is already kinda outdated code
If this is a bug report, please fill in the following sections. If this is a feature request, delete and describe what you would like with examples.
What was wrong?
I have a function in a smart-contract that returns an Array of struct types. But, I was unable to decode it.
Code that produced the error
Method example:
Example Python Code to reproduce (Note: If need more info about how I crafted the transaction, let me know. I am using
ape
)Full error output
Expected Result
list of tuples probably, like this:
Environment
How can it be fixed?
I am not sure!