remove commited

pull/1122/head
yann300 4 years ago
parent 9377ad4b30
commit 54a8ccc310
  1. 1
      libs/remix-debug/test/decoder/vmCall.ts
  2. 5
      libs/remix-lib/src/execution/execution-context.ts
  3. 1
      libs/remix-lib/src/web3Provider/web3VmProvider.ts
  4. 1
      libs/remix-simulator/src/provider.ts

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

Loading…
Cancel
Save