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
This commit is contained in:
Blade Doyle 2019-01-02 17:15:34 -08:00 committed by Gary Yu
parent 216924c677
commit c45486f2b9

View file

@ -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"))?;