Skip to content

Commit 17f3ee8

Browse files
committed
fix extendProvider and removed init from remix-lib
1 parent e30a94d commit 17f3ee8

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
@@ -27,19 +27,19 @@ export function extendProvider (provider) { // Provider should be ethers.js prov
2727
if (!provider.debug) provider.debug = {}
2828

2929
provider.debug.preimage = (key, cb) => {
30-
this.send('debug_preimage', [key])
30+
provider.send('debug_preimage', [key])
3131
.then(result => cb(null, result))
3232
.catch(error => cb(error))
3333
}
3434

3535
provider.debug.traceTransaction = (txHash, options, cb) => {
36-
this.send('debug_traceTransaction', [txHash, options])
36+
provider.send('debug_traceTransaction', [txHash, options])
3737
.then(result => cb(null, result))
3838
.catch(error => cb(error))
3939
}
4040

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

libs/remix-lib/src/init.ts

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

0 commit comments

Comments
 (0)