mirror of
https://github.com/mimblewimble/grin.git
synced 2025-01-21 03:21:08 +03:00
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:
parent
216924c677
commit
c45486f2b9
1 changed files with 3 additions and 1 deletions
|
@ -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"))?;
|
||||
|
|
Loading…
Reference in a new issue