sui icon indicating copy to clipboard operation
sui copied to clipboard

Explorer: Display nested struct and vec fields

Open 666lcz opened this issue 3 years ago • 3 comments

Right now the Explorer just ignores these fields. This should become more straightforward after https://github.com/MystenLabs/sui/pull/1855. For the struct fields, we can just implement a collapsible JSON renderer using some library like https://github.com/mac-s-g/react-json-view

666lcz avatar May 16 '22 15:05 666lcz

@666lcz can I Object ID with struct and vec fields information

Jibz1 avatar Jun 08 '22 11:06 Jibz1

Here's an example object with struct:

https://github.com/MystenLabs/fastnft/blob/3acaf2abcff381918fae4d4e2555ea8c7c0bf9ea/crates/sui-open-rpc/samples/objects.json#L75

666lcz avatar Jun 08 '22 16:06 666lcz

This is done https://github.com/MystenLabs/sui/pull/2740

Jibz1 avatar Jun 21 '22 13:06 Jibz1