From bcffe21133bd6bed1f890d7b5bd43a80f5ef9f34 Mon Sep 17 00:00:00 2001 From: Tyera Eulberg Date: Fri, 3 Sep 2021 16:55:00 -0600 Subject: [PATCH] Add missing error counter --- runtime/src/accounts.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/runtime/src/accounts.rs b/runtime/src/accounts.rs index 5e2383b06f2e98..370cc3cd137d04 100644 --- a/runtime/src/accounts.rs +++ b/runtime/src/accounts.rs @@ -252,6 +252,7 @@ impl Accounts { if solana_sdk::sysvar::instructions::check_id(key) { if message.is_writable(i, demote_program_write_locks) { + error_counters.invalid_account_index += 1; return Err(TransactionError::InvalidAccountIndex); } Self::construct_instructions_account(