diff --git a/svm/src/rollback_accounts.rs b/svm/src/rollback_accounts.rs index d16bfc66094237..cbb1903936d6a9 100644 --- a/svm/src/rollback_accounts.rs +++ b/svm/src/rollback_accounts.rs @@ -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),