From 1c340378490c82a2c0afd74f5ae0fe549347f4b7 Mon Sep 17 00:00:00 2001 From: yann300 Date: Mon, 4 Sep 2017 14:55:42 +0200 Subject: [PATCH] gas to Decimal --- src/web3Provider/web3VmProvider.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/web3Provider/web3VmProvider.js b/src/web3Provider/web3VmProvider.js index d5020892e1..17614c0bef 100644 --- a/src/web3Provider/web3VmProvider.js +++ b/src/web3Provider/web3VmProvider.js @@ -79,7 +79,7 @@ web3VmProvider.prototype.txWillProcess = function (self, data) { this.processingAddress = tx.to tx.data = util.hexConvert(data.data) tx.input = util.hexConvert(data.input) - tx.gas = util.hexConvert(data.gas) + tx.gas = (new ethutil.BN(util.hexConvert(data.gas).replace('0x', ''), 16)).toString(10) if (data.value) { tx.value = util.hexConvert(data.value) }