gas to Decimal

pull/7/head
yann300 7 years ago
parent c316d0b183
commit 1c34037849
  1. 2
      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)
}

Loading…
Cancel
Save