From c45486f2b98c4443744a2e7d5dd2907569d10226 Mon Sep 17 00:00:00 2001 From: Blade Doyle Date: Wed, 2 Jan 2019 17:15:34 -0800 Subject: [PATCH] fix: issue_send_tx problem with keybase method in grin_owner_api * don't drop the slate after send_tx_sync, and also call finalize here following the same pattern as other sync method --- wallet/src/controller.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/wallet/src/controller.rs b/wallet/src/controller.rs index 60b581f3e..8cdcc30d8 100644 --- a/wallet/src/controller.rs +++ b/wallet/src/controller.rs @@ -354,7 +354,9 @@ where api.tx_lock_outputs(&slate, lock_fn)?; } else if args.method == "keybase" { let adapter = KeybaseWalletCommAdapter::new(); - adapter.send_tx_sync(&args.dest, &slate)?; + slate = adapter.send_tx_sync(&args.dest, &slate)?; + api.tx_lock_outputs(&slate, lock_fn)?; + api.finalize_tx(&mut slate)?; } else { error!("unsupported payment method: {}", args.method); return Err(ErrorKind::ClientCallback("unsupported payment method"))?;