@ -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 () {