Foreign API documentation and small cleanup (#31)

* verify slate messages documentation

* rustfmt

* foreign API documentation

* rustfmt
This commit is contained in:
Yeastplume
2019-03-29 08:46:12 +00:00
committed by GitHub
parent f756b10d78
commit 7b8fe92f53
13 changed files with 360 additions and 88 deletions
+2 -2
View File
@@ -299,7 +299,7 @@ pub fn send(
api.tx_lock_outputs(&slate)?;
if args.method == "self" {
controller::foreign_single_use(wallet, |api| {
api.receive_tx(&mut slate, Some(&args.dest), None)?;
slate = api.receive_tx(&slate, Some(&args.dest), None)?;
Ok(())
})?;
}
@@ -349,7 +349,7 @@ pub fn receive(
error!("Error validating participant messages: {}", e);
return Err(e);
}
api.receive_tx(&mut slate, Some(&g_args.account), args.message.clone())?;
slate = api.receive_tx(&slate, Some(&g_args.account), args.message.clone())?;
Ok(())
})?;
let send_tx = format!("{}.response", args.input);