@@ -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 }
0 commit comments