lamports = -> .set_lamports() (#16980)

This commit is contained in:
Jeff Washington (jwash)
2021-04-30 16:17:05 -05:00
committed by GitHub
parent 5e74cede4e
commit 763c04adf3
5 changed files with 18 additions and 7 deletions

View File

@ -1950,7 +1950,7 @@ mod tests {
&AccountSharedData::new(u64::MAX / 2, 0, &system_program::id()),
);
let mut modified_buffer_account = buffer_account.clone();
modified_buffer_account.lamports = u64::MAX / 2;
modified_buffer_account.set_lamports(u64::MAX / 2);
bank.store_account(&buffer_address, &modified_buffer_account);
bank.store_account(&program_keypair.pubkey(), &AccountSharedData::default());
bank.store_account(&programdata_address, &AccountSharedData::default());