From f0630a830a1b2c20d6076becbb288b60ba436ce7 Mon Sep 17 00:00:00 2001 From: Christopher Jeffrey Date: Tue, 14 Mar 2017 04:07:01 -0700 Subject: [PATCH] cli: fix sending. --- bin/cli | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/bin/cli b/bin/cli index ea2fc110..01e7877c 100755 --- a/bin/cli +++ b/bin/cli @@ -274,16 +274,17 @@ CLI.prototype.sendTX = co(function* sendTX() { if (this.config.has('script')) { output.script = this.config.str('script'); - output.value = Amount.value(this.config.num(['value', 0])); + output.value = this.config.str(['value', 0]); } else { output.address = this.config.str(['address', 0]); - output.value = Amount.value(this.config.num(['value', 1])); + output.value = this.config.str(['value', 1]); } options = { account: this.config.str('account'), passphrase: this.config.str('passphrase'), outputs: [output], + smart: this.config.bool('smart'), rate: this.config.str('rate') }; @@ -298,16 +299,18 @@ CLI.prototype.createTX = co(function* createTX() { if (this.config.has('script')) { output.script = this.config.str('script'); - output.value = Amount.value(this.config.str(['value', 0])); + output.value = this.config.str(['value', 0]); } else { output.address = this.config.str(['address', 0]); - output.value = Amount.value(this.config.num(['value', 1])); + output.value = this.config.str(['value', 1])); } options = { account: this.config.str('account'), passphrase: this.config.str('passphrase'), - outputs: [output] + outputs: [output], + smart: this.config.bool('smart'), + rate: this.config.str('rate') }; tx = yield this.wallet.createTX(options);