Skip to content

Commit

Permalink
Add PointLookup
Browse files Browse the repository at this point in the history
  • Loading branch information
lxfind committed Sep 13, 2024
1 parent 0f0c69a commit ee056ff
Show file tree
Hide file tree
Showing 2 changed files with 211 additions and 152 deletions.
6 changes: 4 additions & 2 deletions crates/sui-graphql-rpc/src/types/dynamic_field.rs
Original file line number Diff line number Diff line change
Expand Up @@ -274,9 +274,11 @@ impl TryFrom<MoveObject> for DynamicField {
let super_ = &stored.super_;

let native = match &super_.kind {
ObjectKind::NotIndexed(native) | ObjectKind::Indexed(native, _) => native,
ObjectKind::NotIndexed(native) | ObjectKind::Indexed(native, _) => native.clone(),
ObjectKind::Serialized(bytes) => bcs::from_bytes(bytes)
.map_err(|e| Error::Internal(format!("Failed to deserialize object: {e}")))?,

ObjectKind::WrappedOrDeleted(_) => {
ObjectKind::WrappedOrDeleted => {
return Err(Error::Internal(
"DynamicField is wrapped or deleted.".to_string(),
));
Expand Down
Loading

0 comments on commit ee056ff

Please sign in to comment.