@@ -93,7 +93,7 @@ export class PaymasterClient extends ethers.JsonRpcProvider {
93
93
if ( policyUUID ) {
94
94
const newConnection = this . _getConnection ( )
95
95
newConnection . setHeader ( "X-MegaFuel-Policy-Uuid" , policyUUID )
96
- const sponsorProviderWithHeader = new ethers . JsonRpcProvider (
96
+ const provider = new ethers . JsonRpcProvider (
97
97
newConnection ,
98
98
( this as any ) . _network ,
99
99
{
@@ -102,7 +102,7 @@ export class PaymasterClient extends ethers.JsonRpcProvider {
102
102
polling : ( this as any ) . polling
103
103
}
104
104
)
105
- return await sponsorProviderWithHeader . send ( 'pm_isSponsorable' , [ tx ] )
105
+ return await provider . send ( 'pm_isSponsorable' , [ tx ] )
106
106
}
107
107
return await this . send ( 'pm_isSponsorable' , [ tx ] )
108
108
}
@@ -119,7 +119,7 @@ export class PaymasterClient extends ethers.JsonRpcProvider {
119
119
newConnection . setHeader ( "X-MegaFuel-Policy-Uuid" , policyUUID )
120
120
}
121
121
122
- const sponsorProvider = new ethers . JsonRpcProvider (
122
+ const provider = new ethers . JsonRpcProvider (
123
123
newConnection ,
124
124
( this as any ) . _network ,
125
125
{
@@ -130,7 +130,7 @@ export class PaymasterClient extends ethers.JsonRpcProvider {
130
130
)
131
131
132
132
if ( policyUUID ) {
133
- return await sponsorProvider . send ( 'eth_sendRawTransaction' , [ signedTx ] )
133
+ return await provider . send ( 'eth_sendRawTransaction' , [ signedTx ] )
134
134
}
135
135
}
136
136
return await this . send ( 'eth_sendRawTransaction' , [ signedTx ] )
0 commit comments