From f8977534ade403e930fb379106b5268bb8c4cd68 Mon Sep 17 00:00:00 2001 From: aniket-engg Date: Wed, 2 Dec 2020 18:25:25 +0530 Subject: [PATCH] web3vmprovider method mapping updated --- .../remix-lib/src/web3Provider/web3VmProvider.ts | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/libs/remix-lib/src/web3Provider/web3VmProvider.ts b/libs/remix-lib/src/web3Provider/web3VmProvider.ts index e5e336c448..a3ce87ecf3 100644 --- a/libs/remix-lib/src/web3Provider/web3VmProvider.ts +++ b/libs/remix-lib/src/web3Provider/web3VmProvider.ts @@ -46,14 +46,14 @@ export class Web3VmProvider { this.incr = 0 this.eth = {} this.debug = {} - this.eth.getCode = (...args) => this.getCode(...args) - this.eth.getTransaction = (...args) => this.getTransaction(...args) - this.eth.getTransactionReceipt = (...args) => this.getTransactionReceipt(...args) - this.eth.getTransactionFromBlock = (...args) => this.getTransactionFromBlock(...args) - this.eth.getBlockNumber = (...args) => this.getBlockNumber(...args) - this.debug.traceTransaction = (...args) => this.traceTransaction(...args) - this.debug.storageRangeAt = (...args) => this.storageRangeAt(...args) - this.debug.preimage = (...args) => this.preimage(...args) + this.eth.getCode = this.getCode + this.eth.getTransaction = this.getTransaction + this.eth.getTransactionReceipt = this.getTransactionReceipt + this.eth.getTransactionFromBlock = this.getTransactionFromBlock + this.eth.getBlockNumber = this.getBlockNumber + this.debug.traceTransaction = this.traceTransaction + this.debug.storageRangeAt = this.storageRangeAt + this.debug.preimage = this.preimage this.providers = { 'HttpProvider': function (url) {} } this.currentProvider = { 'host': 'vm provider' } this.storageCache = {}