SetLockup now requires the authorized withdrawer when the lockup is not in force

This commit is contained in:
Michael Vines
2021-05-20 14:04:07 -07:00
parent ff0e623d30
commit 96cde36784
3 changed files with 157 additions and 23 deletions

View File

@ -1133,7 +1133,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,