frontend icon indicating copy to clipboard operation
frontend copied to clipboard

Support arrays of structs/tuples in contract method result

Open yvaskov opened this issue 11 months ago • 1 comments

Description

Currently we parse arrays of tuples incorrectly, example:

https://unreal.blockscout.com/address/0x747c6530dC1e2dfD19978955119da93703b1f746?tab=read_proxy Method 5 getAllPair, args:

0x1111110000000000000000000000000000000000
6
0

Image

Need to add support for this type of results. It would look like this:

*pair1 (tuple):
    version (uint8) : 1
    pair_address (address): 0x7bae255618b0e5783a81e2abc82219dd62bebb23,
    box_address (address): 0x9675c1a6ec968c2ab16ac7c04f9cad5a9c8d023a,
    ...
*pair2 (tuple):
    version (uint8) : 1
    pair_address (address): 0x6145dbad9b8afc226d66d29df35b9228c4763b67,
    box_address (address): 0xdb477e5dc1c36a168e324a086ae65c35bfd35052,
    ...

Version

v1.25.0

yvaskov avatar Feb 29 '24 08:02 yvaskov