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
let object_resp = sui.read_api().get_object_with_options(
your_object_id,SuiObjectDataOptions{show_content:true,
..Default::default()},).await.unwrap();let json = object_resp.data.unwrap_or_else(|| panic!("No data found for Foo at {your_object_id}")).content.unwrap_or_else(|| panic!("No content found for Foo at {your_object_id}")).try_into_move().map(|SuiParsedMoveObject{ fields, .. }| dbg!(fields).to_json_value()).unwrap_or_else(|| panic!("Foo at {your_object_id} is not a Move object"));
I would expect to see which variant of Bar was used. When I open my local explorer provided by Suibase, I can actually see the variant there.
The SDK swallows the variant parameter. While I can see "pos0" representing Bar::A or Bar::B positional argument, the actual variant is not present. I get something like:
I would expect to see which variant of
Bar
was used. When I open my local explorer provided by Suibase, I can actually see the variant there.The SDK swallows the variant parameter. While I can see
"pos0"
representingBar::A
orBar::B
positional argument, the actual variant is not present. I get something like:But the explorer correctly shows me:
The text was updated successfully, but these errors were encountered: