Fix fee fetching issues
This commit is contained in:
parent
0088ba7068
commit
d3478fb2ba
5 changed files with 10 additions and 10 deletions
|
|
@ -42,8 +42,8 @@ function sendCoins (account, address, cryptoAtoms, cryptoCode) {
|
|||
|
||||
return checkCryptoCode(cryptoCode)
|
||||
.then(() => fetch('sendtoaddress', [address, coins]))
|
||||
.then((txId) => fetch('gettransaction', txId))
|
||||
.then((res) => _.pick(res, ['fee', 'txid']))
|
||||
.then((txId) => fetch('gettransaction', [txId]))
|
||||
.then((res) => _.pick(['fee', 'txid'], res))
|
||||
.then((pickedObj) => {
|
||||
return {
|
||||
fee: BN(pickedObj.fee).abs().shift(unitScale).round(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue