Skip to content

Commit

Permalink
change copy mut to proper accountshareddata function
Browse files Browse the repository at this point in the history
  • Loading branch information
2501babe committed Aug 29, 2024
1 parent cd72074 commit 62b2a2c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions svm/src/rollback_accounts.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,7 @@ impl RollbackAccounts {

if let Some(nonce) = nonce {
if &fee_payer_address == nonce.address() {
fee_payer_account
.data_as_mut_slice()
.copy_from_slice(nonce.account().data());
fee_payer_account.set_data_from_slice(nonce.account().data());

RollbackAccounts::SameNonceAndFeePayer {
nonce: NonceInfo::new(fee_payer_address, fee_payer_account),
Expand Down

0 comments on commit 62b2a2c

Please sign in to comment.