lamports = -> .set_lamports() (#16980)
This commit is contained in:
committed by
GitHub
parent
5e74cede4e
commit
763c04adf3
@@ -7308,7 +7308,7 @@ pub mod tests {
|
||||
let mut i = 0;
|
||||
loop {
|
||||
let account_bal = thread_rng().gen_range(1, 99);
|
||||
account.lamports = account_bal;
|
||||
account.set_lamports(account_bal);
|
||||
db.store_uncached(slot, &[(&pubkey, &account)]);
|
||||
|
||||
let (account, slot) = db
|
||||
|
@@ -12135,7 +12135,7 @@ pub(crate) mod tests {
|
||||
// Modify staked vote account owner; a vote account owned by another program could be
|
||||
// freely modified with malicious data
|
||||
let bogus_vote_program = Pubkey::new_unique();
|
||||
vote_account.lamports = original_lamports;
|
||||
vote_account.set_lamports(original_lamports);
|
||||
vote_account.set_owner(bogus_vote_program);
|
||||
bank.store_account(
|
||||
&validator_vote_keypairs0.vote_keypair.pubkey(),
|
||||
|
Reference in New Issue
Block a user