Commit 142f6de4 authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #565 from ethereum/fixGas

gas convert to Decimal (VM)
parents c316d0b1 1c340378
...@@ -79,7 +79,7 @@ web3VmProvider.prototype.txWillProcess = function (self, data) { ...@@ -79,7 +79,7 @@ web3VmProvider.prototype.txWillProcess = function (self, data) {
this.processingAddress = tx.to this.processingAddress = tx.to
tx.data = util.hexConvert(data.data) tx.data = util.hexConvert(data.data)
tx.input = util.hexConvert(data.input) 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) { if (data.value) {
tx.value = util.hexConvert(data.value) tx.value = util.hexConvert(data.value)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment