Commit 8e61343
committed
fix(cli): executeswap don't set undefined quantity
The `coinsToSats` method expects a number, but when a quantity is not
defined as a command argument then it gets passed `undefined` and
returns `NaN`. Instead, we should not call this method when `quantity`
is not defined and leave it as its default value on the gRPC call.
Fixes #1175.1 parent 328d35f commit 8e61343
1 file changed
+3
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
40 | 42 | | |
41 | 43 | | |
0 commit comments