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:
@@ -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"))?;
|
||||
|
||||
Reference in New Issue
Block a user