tests: .lamports= -> .set_lamports() (#16977)
* .lamports= -> .set_lamports() * another * fix * another
This commit is contained in:
committed by
GitHub
parent
0af84bb91e
commit
6f88aeac56
@ -3118,7 +3118,7 @@ mod tests {
|
||||
assert_eq!(stake_keyed_account.state(), Ok(StakeState::Uninitialized));
|
||||
|
||||
// reset balance
|
||||
stake_account.borrow_mut().lamports = stake_lamports;
|
||||
stake_account.borrow_mut().set_lamports(stake_lamports);
|
||||
|
||||
// lockup
|
||||
let stake_keyed_account = KeyedAccount::new(&stake_pubkey, true, &stake_account);
|
||||
|
@ -1696,7 +1696,7 @@ mod tests {
|
||||
assert!(post_state.is_uninitialized());
|
||||
|
||||
// reset balance and restore state, verify that authorized_withdrawer works
|
||||
vote_account.borrow_mut().lamports = lamports;
|
||||
vote_account.borrow_mut().set_lamports(lamports);
|
||||
vote_account.borrow_mut().set_state(&pre_state).unwrap();
|
||||
|
||||
// authorize authorized_withdrawer
|
||||
|
Reference in New Issue
Block a user