From 34520a46d9c785a13b65174475ad49c0ca8a3790 Mon Sep 17 00:00:00 2001 From: Yeastplume Date: Mon, 26 Nov 2018 12:35:14 +0000 Subject: [PATCH] fix self send command (#2022) --- src/bin/cmd/wallet.rs | 1 + wallet/src/adapters/null.rs | 6 +++--- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/bin/cmd/wallet.rs b/src/bin/cmd/wallet.rs index efef88b37..f39a73025 100644 --- a/src/bin/cmd/wallet.rs +++ b/src/bin/cmd/wallet.rs @@ -463,6 +463,7 @@ pub fn wallet_command(wallet_args: &ArgMatches, config: GlobalWalletConfig) -> i match result { Ok(_) => { info!("Tx sent",); + println!("Tx sent",); return Ok(()); } Err(e) => { diff --git a/wallet/src/adapters/null.rs b/wallet/src/adapters/null.rs index 34ed5c576..90ee66c7e 100644 --- a/wallet/src/adapters/null.rs +++ b/wallet/src/adapters/null.rs @@ -34,12 +34,12 @@ impl WalletCommAdapter for NullWalletCommAdapter { true } - fn send_tx_sync(&self, _dest: &str, _slate: &Slate) -> Result { - unimplemented!(); + fn send_tx_sync(&self, _dest: &str, slate: &Slate) -> Result { + Ok(slate.clone()) } fn send_tx_async(&self, _dest: &str, _slate: &Slate) -> Result<(), Error> { - unimplemented!(); + Ok(()) } fn receive_tx_async(&self, _params: &str) -> Result {