From 9fd61ce974f0ecb5352f71a6e82b234f6be5c73f Mon Sep 17 00:00:00 2001 From: ananas-block Date: Wed, 27 Mar 2024 14:18:28 +0000 Subject: [PATCH] fixed compile issue --- programs/account-compression/src/lib.rs | 1 + programs/compressed-pda/src/nullify_state.rs | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/programs/account-compression/src/lib.rs b/programs/account-compression/src/lib.rs index 05ccd69a70..c20b6caf30 100644 --- a/programs/account-compression/src/lib.rs +++ b/programs/account-compression/src/lib.rs @@ -1,3 +1,4 @@ +#![allow(clippy::too_many_arguments)] pub mod errors; pub mod instructions; pub use instructions::*; diff --git a/programs/compressed-pda/src/nullify_state.rs b/programs/compressed-pda/src/nullify_state.rs index 4a11f6724a..a8f204962c 100644 --- a/programs/compressed-pda/src/nullify_state.rs +++ b/programs/compressed-pda/src/nullify_state.rs @@ -15,7 +15,7 @@ pub fn insert_nullifiers<'a, 'b, 'c: 'info, 'info>( let state_merkle_tree_pubkeys = inputs .input_compressed_accounts_with_merkle_context .iter() - .map(|account| ctx.remaining_accounts[account.index_mt_account as usize].key()) + .map(|account| ctx.remaining_accounts[account.index_merkle_tree_account as usize].key()) .collect::>(); let mut indexed_array_account_infos = Vec::::new(); for account in inputs.input_compressed_accounts_with_merkle_context.iter() {