Add --seed support to delegate-stake and withdraw-stake commands

This commit is contained in:
Michael Vines
2021-04-21 11:05:05 -07:00
committed by mergify[bot]
parent a1ef2bd74d
commit ba9a502e7e
3 changed files with 73 additions and 9 deletions

View File

@ -189,6 +189,7 @@ fn test_seed_stake_delegation_and_deactivation() {
nonce_account: None,
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
process_command(&config_validator).unwrap();
@ -269,6 +270,7 @@ fn test_stake_delegation_and_deactivation() {
nonce_account: None,
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
process_command(&config_validator).unwrap();
@ -391,6 +393,7 @@ fn test_offline_stake_delegation_and_deactivation() {
nonce_account: None,
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
let sig_response = process_command(&config_offline).unwrap();
@ -409,6 +412,7 @@ fn test_offline_stake_delegation_and_deactivation() {
nonce_account: None,
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
process_command(&config_payer).unwrap();
@ -524,6 +528,7 @@ fn test_nonced_stake_delegation_and_deactivation() {
nonce_account: Some(nonce_account.pubkey()),
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
process_command(&config).unwrap();
@ -1459,6 +1464,7 @@ fn test_offline_nonced_create_stake_account_and_withdraw() {
nonce_account: Some(nonce_pubkey),
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
let sig_response = process_command(&config_offline).unwrap();
@ -1480,6 +1486,7 @@ fn test_offline_nonced_create_stake_account_and_withdraw() {
nonce_account: Some(nonce_pubkey),
nonce_authority: 0,
memo: None,
seed: None,
fee_payer: 0,
};
process_command(&config).unwrap();