Skip to content

Commit

Permalink
remove nonce hack from integration test
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Aug 27, 2024
1 parent ab87385 commit 558e361
Showing 1 changed file with 2 additions and 21 deletions.
23 changes: 2 additions & 21 deletions svm/tests/integration_test.rs
Original file line number Diff line number Diff line change
Expand Up @@ -854,33 +854,14 @@ fn execute_test_entry(test_entry: SvmTestEntry) {
final_accounts_actual.insert(*fee_payer, fee_payer_account);
}
RollbackAccounts::SameNonceAndFeePayer { nonce } => {
let mut new_nonce = nonce.clone();
new_nonce
.try_advance_nonce(
DurableNonce::from_blockhash(&Hash::default()),
LAMPORTS_PER_SIGNATURE,
)
.unwrap();

final_accounts_actual
.insert(*new_nonce.address(), new_nonce.account().clone());
final_accounts_actual.insert(*nonce.address(), nonce.account().clone());
}
RollbackAccounts::SeparateNonceAndFeePayer {
nonce,
fee_payer_account,
} => {
final_accounts_actual.insert(*fee_payer, fee_payer_account);

let mut new_nonce = nonce.clone();
new_nonce
.try_advance_nonce(
DurableNonce::from_blockhash(&Hash::default()),
LAMPORTS_PER_SIGNATURE,
)
.unwrap();

final_accounts_actual
.insert(*new_nonce.address(), new_nonce.account().clone());
final_accounts_actual.insert(*nonce.address(), nonce.account().clone());
}
}
}
Expand Down

0 comments on commit 558e361

Please sign in to comment.