CLI: Fix tests. sign_only requires a blockhash (#8005)

This is enforced by argument parsing and will be better enforced wholly
with #7981
This commit is contained in:
Trent Nelson
2020-01-28 18:02:20 -07:00
committed by GitHub
parent 12eff5a2f9
commit 4a074133f7
2 changed files with 8 additions and 3 deletions

View File

@@ -289,9 +289,11 @@ fn test_offline_pay_tx() {
check_balance(50, &rpc_client, &config_offline.keypair.pubkey());
check_balance(50, &rpc_client, &config_online.keypair.pubkey());
let (blockhash, _) = rpc_client.get_recent_blockhash().unwrap();
config_offline.command = CliCommand::Pay(PayCommand {
lamports: 10,
to: bob_pubkey,
blockhash: Some(blockhash),
sign_only: true,
..PayCommand::default()
});