Commit 54a8ccc3 authored by yann300's avatar yann300

remove commited

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