aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/send_/send.utils.js
diff options
context:
space:
mode:
authorAlexander Tseung <alextsg@gmail.com>2018-06-15 05:04:14 +0800
committerAlexander Tseung <alextsg@gmail.com>2018-06-15 05:58:42 +0800
commit1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807 (patch)
tree2a2f2d53cce25455c8c41b6cc4393cb5bd2efab3 /ui/app/components/send_/send.utils.js
parent299abee666d7f8347e062afff4f2fae47c7f6968 (diff)
downloadtangerine-wallet-browser-1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807.tar.gz
tangerine-wallet-browser-1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807.tar.zst
tangerine-wallet-browser-1b9ed237527b9970c3dfcbb0234cfdb2ffa8c807.zip
Add hex-prefix to gas estimate result
Diffstat (limited to 'ui/app/components/send_/send.utils.js')
-rw-r--r--ui/app/components/send_/send.utils.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ui/app/components/send_/send.utils.js b/ui/app/components/send_/send.utils.js
index 67699be77..04a41456c 100644
--- a/ui/app/components/send_/send.utils.js
+++ b/ui/app/components/send_/send.utils.js
@@ -201,12 +201,12 @@ async function estimateGas ({ selectedAddress, selectedToken, blockGasLimit, to,
err.message.includes('gas required exceeds allowance or always failing transaction')
)
if (simulationFailed) {
- return resolve(paramsForGasEstimate.gas)
+ return resolve(ethUtil.addHexPrefix(paramsForGasEstimate.gas))
} else {
return reject(err)
}
}
- return resolve(estimatedGas.toString(16))
+ return resolve(ethUtil.addHexPrefix(estimatedGas.toString(16)))
})
})
}