fix: send new fee as a number and add more fee options
This commit is contained in:
parent
8480658bd2
commit
427d046679
2 changed files with 9 additions and 1 deletions
|
|
@ -79,7 +79,7 @@ function sendCoins (account, tx, settings, operatorId, feeMultiplier) {
|
|||
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => calculateFeeDiscount(feeMultiplier))
|
||||
.then(newFee => fetch('settxfee', [newFee]))
|
||||
.then(newFee => fetch('settxfee', [newFee.toNumber()]))
|
||||
.then(() => fetch('sendtoaddress', [toAddress, coins]))
|
||||
.then((txId) => fetch('gettransaction', [txId]))
|
||||
.then((res) => _.pick(['fee', 'txid'], res))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue