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
Some contracts define custom structs. It would be helpful to be able to use those definitions directly
Specification
s=contract.MyStruct(a1, a2, ...) # Initialize a structassertcontract.myStruct() ==contract.MyStruct(a1, a2) # comparisons for Assertionss.encode(packed=True) # encode a struct to bytes (unpacked by default)s=contract.MyStruct.decode(data_bytes, packed=True) # decode a struct from some bytes
Dependencies
This feature is already available on abi encoding and decoding for methods, so it's a matter of exposing it more formally as something you can use directly from the contracts ABI
The text was updated successfully, but these errors were encountered:
Overview
Some contracts define custom structs. It would be helpful to be able to use those definitions directly
Specification
Dependencies
This feature is already available on abi encoding and decoding for methods, so it's a matter of exposing it more formally as something you can use directly from the contracts ABI
The text was updated successfully, but these errors were encountered: