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

automerge
This commit is contained in:
mergify[bot]
2020-01-28 19:07:47 -08:00
committed by GitHub
parent 756e6334b0
commit 932ae86d47
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()
});