Skip to content

Commit

Permalink
Add missing error counter
Browse files Browse the repository at this point in the history
  • Loading branch information
Tyera Eulberg committed Sep 4, 2021
1 parent e08d949 commit bcffe21
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions runtime/src/accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit bcffe21

Please sign in to comment.