Skip to content

Commit 0c37735

Browse files
committed
fix extendProvider and removed init from remix-lib
1 parent e3fbd39 commit 0c37735

File tree

2 files changed

+3
-33
lines changed

2 files changed

+3
-33
lines changed

libs/remix-debug/src/init.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,19 +23,19 @@ export function extendProvider (provider) { // Provider should be ethers.js prov
2323
if (!provider.debug) provider.debug = {}
2424

2525
provider.debug.preimage = (key, cb) => {
26-
this.send('debug_preimage', [key])
26+
provider.send('debug_preimage', [key])
2727
.then(result => cb(null, result))
2828
.catch(error => cb(error))
2929
}
3030

3131
provider.debug.traceTransaction = (txHash, options, cb) => {
32-
this.send('debug_traceTransaction', [txHash, options])
32+
provider.send('debug_traceTransaction', [txHash, options])
3333
.then(result => cb(null, result))
3434
.catch(error => cb(error))
3535
}
3636

3737
provider.debug.storageRangeAt = (txBlockHash, txIndex, address, start, maxSize, cb) => {
38-
this.send('debug_storageRangeAt', [txBlockHash, toNumber(txIndex), address, start, maxSize])
38+
provider.send('debug_storageRangeAt', [txBlockHash, toNumber(txIndex), address, start, maxSize])
3939
.then(result => cb(null, result))
4040
.catch(error => cb(error))
4141
}

libs/remix-lib/src/init.ts

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)