SetLockup now requires the authorized withdrawer when the lockup is not in force (#17394)

(cherry picked from commit 96cde36784)

Co-authored-by: Michael Vines <mvines@gmail.com>
This commit is contained in:
mergify[bot]
2021-05-21 21:17:06 +00:00
committed by GitHub
parent 72d038ecd8
commit df08ba5dcd
3 changed files with 158 additions and 20 deletions

View File

@@ -1123,7 +1123,7 @@ fn test_stake_set_lockup() {
stake_account: 1,
seed: None,
staker: Some(offline_pubkey),
withdrawer: Some(offline_pubkey),
withdrawer: Some(config.signers[0].pubkey()),
lockup,
amount: SpendAmount::Some(10 * minimum_stake_balance),
sign_only: false,