Commit 0d99cd28 authored by yann300's avatar yann300

remove uneeded space

parent eae7f2d0
...@@ -107,7 +107,6 @@ export class Web3VmProvider { ...@@ -107,7 +107,6 @@ export class Web3VmProvider {
async txWillProcess (data) { async txWillProcess (data) {
this.incr++ this.incr++
this.processingHash = bufferToHex(data.hash()) this.processingHash = bufferToHex(data.hash())
this.vmTraces[this.processingHash] = { this.vmTraces[this.processingHash] = {
gas: '0x0', gas: '0x0',
return: '0x0', return: '0x0',
...@@ -115,23 +114,19 @@ export class Web3VmProvider { ...@@ -115,23 +114,19 @@ export class Web3VmProvider {
} }
const tx = {} const tx = {}
tx['hash'] = this.processingHash tx['hash'] = this.processingHash
tx['from'] = toChecksumAddress(data.getSenderAddress().toString()) tx['from'] = toChecksumAddress(data.getSenderAddress().toString())
if (data.to) { if (data.to) {
tx['to'] = toChecksumAddress(data.to.toString()) tx['to'] = toChecksumAddress(data.to.toString())
} }
this.processingAddress = tx['to'] this.processingAddress = tx['to']
tx['input'] = bufferToHex(data.data) tx['input'] = bufferToHex(data.data)
tx['gas'] = data.gasLimit.toString(10) tx['gas'] = data.gasLimit.toString(10)
if (data.value) { if (data.value) {
tx['value'] = data.value.toString(10) tx['value'] = data.value.toString(10)
} }
this.txs[this.processingHash] = tx this.txs[this.processingHash] = tx
this.txsReceipt[this.processingHash] = tx this.txsReceipt[this.processingHash] = tx
this.storageCache[this.processingHash] = {} this.storageCache[this.processingHash] = {}
if (data.to) { if (data.to) {
try { try {
// dumpStorage throws error as 'Missing Node in DB' // dumpStorage throws error as 'Missing Node in DB'
......
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