diff --git a/token/program-2022/src/extension/confidential_mint_burn/account_info.rs b/token/program-2022/src/extension/confidential_mint_burn/account_info.rs index 3d9e88b5ef6..d9fc3915624 100644 --- a/token/program-2022/src/extension/confidential_mint_burn/account_info.rs +++ b/token/program-2022/src/extension/confidential_mint_burn/account_info.rs @@ -30,7 +30,7 @@ pub struct SupplyAccountInfo { impl SupplyAccountInfo { /// Creates a SupplyAccountInfo from ConfidentialMintBurn extension account /// data - pub fn new(extension: ConfidentialMintBurn) -> Self { + pub fn new(extension: &ConfidentialMintBurn) -> Self { Self { current_supply: extension.confidential_supply, decryptable_supply: extension.decryptable_supply,