Skip to content

Commit

Permalink
fix rust client authority type change
Browse files Browse the repository at this point in the history
  • Loading branch information
nhanphan committed Mar 7, 2024
1 parent 2fcd1f7 commit fc56a0d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions clients/rust/src/hooked/plugins.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ use crate::{
pub fn fetch_plugin<T: DataBlob + SolanaAccount, U: BorshDeserialize>(
account: &AccountInfo,
plugin_type: PluginType,
) -> Result<(Vec<Authority>, U, usize), std::io::Error> {
) -> Result<(Authority, U, usize), std::io::Error> {
let asset = T::load(account, 0)?;

let header = PluginHeader::load(account, asset.get_size())?;
Expand Down Expand Up @@ -50,7 +50,7 @@ pub fn fetch_plugin<T: DataBlob + SolanaAccount, U: BorshDeserialize>(

// Return the plugin and its authorities.
Ok((
registry_record.authorities.clone(),
registry_record.authority.clone(),
inner,
registry_record.offset as usize,
))
Expand Down

0 comments on commit fc56a0d

Please sign in to comment.