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