Skip to content

Commit

Permalink
added back sui_getObjectsOwnedByObject for backward compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickkuo committed Nov 24, 2022
1 parent 7bf4568 commit 3735554
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions crates/sui-sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -221,6 +221,13 @@ impl ReadApi {
Ok(self.api.http.get_objects_owned_by_address(address).await?)
}

pub async fn get_objects_owned_by_object(
&self,
object_id: ObjectID,
) -> anyhow::Result<Vec<SuiObjectInfo>> {
Ok(self.api.http.get_objects_owned_by_object(object_id).await?)
}

pub async fn get_dynamic_fields(
&self,
object_id: ObjectID,
Expand Down

0 comments on commit 3735554

Please sign in to comment.