Commit 54a8ccc3 authored by yann300's avatar yann300

remove commited

parent 9377ad4b
...@@ -43,7 +43,6 @@ async function createVm (hardfork) { ...@@ -43,7 +43,6 @@ async function createVm (hardfork) {
const common = new Common({ chain: 'mainnet', hardfork }) const common = new Common({ chain: 'mainnet', hardfork })
const vm = new VM({ common }) const vm = new VM({ common })
await vm.init() await vm.init()
// vm.blockchain.validate = false
return { vm, stateManager: vm.stateManager } return { vm, stateManager: vm.stateManager }
} }
......
...@@ -245,11 +245,6 @@ export class ExecutionContext { ...@@ -245,11 +245,6 @@ export class ExecutionContext {
if (!infoCb) infoCb = () => {} if (!infoCb) infoCb = () => {}
if (context === 'vm') { if (context === 'vm') {
this.executionContext = context this.executionContext = context
/*
this.vms[this.currentFork].stateManager.revert().then(() => {
this.vms[this.currentFork].stateManager.checkpoint()
})
*/
this.event.trigger('contextChanged', ['vm']) this.event.trigger('contextChanged', ['vm'])
return cb() return cb()
} }
......
...@@ -109,7 +109,6 @@ export class Web3VmProvider { ...@@ -109,7 +109,6 @@ export class Web3VmProvider {
tx['to'] = toChecksumAddress(data.to.toString()) tx['to'] = toChecksumAddress(data.to.toString())
} }
this.processingAddress = tx['to'] this.processingAddress = tx['to']
// tx['data'] = hexConvert(data.data)
tx['input'] = hexConvert(data.data) tx['input'] = hexConvert(data.data)
tx['gas'] = data.gasLimit.toString(10) tx['gas'] = data.gasLimit.toString(10)
if (data.value) { if (data.value) {
......
...@@ -39,7 +39,6 @@ export class Provider { ...@@ -39,7 +39,6 @@ export class Provider {
this.methods = merge(this.methods, netMethods()) this.methods = merge(this.methods, netMethods())
this.methods = merge(this.methods, this.Transactions.methods()) this.methods = merge(this.methods, this.Transactions.methods())
this.methods = merge(this.methods, (new Debug(this.executionContext)).methods()) this.methods = merge(this.methods, (new Debug(this.executionContext)).methods())
// this.init()
} }
async init () { async init () {
......
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