Skip to content

Commit

Permalink
use a Uint8Array instead of a vec (#1341)
Browse files Browse the repository at this point in the history
  • Loading branch information
codabrink authored Nov 26, 2024
1 parent 0c1ae68 commit 1413c38
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion bindings_node/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xmtp/node-bindings",
"version": "0.0.23",
"version": "0.0.24",
"repository": {
"type": "git",
"url": "git+https://[email protected]/xmtp/libxmtp.git",
Expand Down
7 changes: 5 additions & 2 deletions bindings_node/src/client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -313,10 +313,13 @@ impl Client {
pub async fn is_installation_authorized(
&self,
inbox_id: String,
installation: Vec<u8>,
installation_id: Uint8Array,
) -> Result<bool> {
self
.is_member_of_association_state(&inbox_id, &MemberIdentifier::Installation(installation))
.is_member_of_association_state(
&inbox_id,
&MemberIdentifier::Installation(installation_id.to_vec()),
)
.await
}

Expand Down

0 comments on commit 1413c38

Please sign in to comment.