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

This commit is contained in:
Jeff Washington (jwash)
2021-04-30 13:20:54 -05:00
committed by GitHub
parent ac87bc40ca
commit 0af84bb91e
3 changed files with 7 additions and 4 deletions

View File

@ -3455,7 +3455,10 @@ mod tests {
);
}
// reset balance
stake_keyed_account.account.borrow_mut().lamports = total_lamports;
stake_keyed_account
.account
.borrow_mut()
.set_lamports(total_lamports);
// lockup has expired
let to_keyed_account = KeyedAccount::new(&to, false, &to_account);