Skip to content

Commit

Permalink
fix(sdk-rs): deserialization in get_multisig
Browse files Browse the repository at this point in the history
  • Loading branch information
vovacodes committed Sep 11, 2023
1 parent 7223072 commit 9535a22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions sdk/rs/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ pub mod client {
use squads_multisig_program::Multisig;

use crate::anchor_lang::prelude::Pubkey;
use crate::anchor_lang::AnchorDeserialize;
use crate::anchor_lang::AccountDeserialize;
use crate::anchor_lang::{
solana_program::instruction::Instruction, InstructionData, ToAccountMetas,
};
Expand All @@ -84,7 +84,7 @@ pub mod client {
) -> ClientResult<Multisig> {
let multisig_account = rpc_client.get_account(multisig_key).await?;

let multisig = Multisig::try_from_slice(&multisig_account.data)
let multisig = Multisig::try_deserialize(&mut multisig_account.data.as_slice())
.map_err(|_| ClientError::DeserializationError)?;

Ok(multisig)
Expand Down

0 comments on commit 9535a22

Please sign in to comment.