fix self send command (#2022)

This commit is contained in:
Yeastplume 2018-11-26 12:35:14 +00:00 committed by GitHub
parent 0c5b3f5f64
commit 34520a46d9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 3 deletions

View file

@ -463,6 +463,7 @@ pub fn wallet_command(wallet_args: &ArgMatches, config: GlobalWalletConfig) -> i
match result { match result {
Ok(_) => { Ok(_) => {
info!("Tx sent",); info!("Tx sent",);
println!("Tx sent",);
return Ok(()); return Ok(());
} }
Err(e) => { Err(e) => {

View file

@ -34,12 +34,12 @@ impl WalletCommAdapter for NullWalletCommAdapter {
true true
} }
fn send_tx_sync(&self, _dest: &str, _slate: &Slate) -> Result<Slate, Error> { fn send_tx_sync(&self, _dest: &str, slate: &Slate) -> Result<Slate, Error> {
unimplemented!(); Ok(slate.clone())
} }
fn send_tx_async(&self, _dest: &str, _slate: &Slate) -> Result<(), Error> { fn send_tx_async(&self, _dest: &str, _slate: &Slate) -> Result<(), Error> {
unimplemented!(); Ok(())
} }
fn receive_tx_async(&self, _params: &str) -> Result<Slate, Error> { fn receive_tx_async(&self, _params: &str) -> Result<Slate, Error> {