@@ -250,7 +250,7 @@ describe('Sell Gasless API Response', () => {
250250 expect ( eip5792 ?. paymasterUrl ) . toBeDefined ( ) ;
251251
252252 // Each call needs: to, data, value
253- eip5792 ?. calls ?. forEach ( ( call , index ) => {
253+ eip5792 ?. calls ?. forEach ( ( call ) => {
254254 expect ( call . to ) . toBeDefined ( ) ;
255255 expect ( call . data ) . toBeDefined ( ) ;
256256 expect ( call . value ) . toBeDefined ( ) ;
@@ -286,10 +286,9 @@ describe('Gasless Response Variants', () => {
286286 it ( 'should handle response with only EIP-7702 (no EIP-5792)' , ( ) => {
287287 const responseWithOnlyEip7702 : SellPaymentInfoResponse = {
288288 ...mockApiResponse ,
289- depositTx : {
290- ...mockApiResponse . depositTx ! ,
291- eip5792 : undefined ,
292- } ,
289+ depositTx : mockApiResponse . depositTx
290+ ? { ...mockApiResponse . depositTx , eip5792 : undefined }
291+ : undefined ,
293292 } ;
294293
295294 const hasEip5792 = ! ! responseWithOnlyEip7702 . depositTx ?. eip5792 ;
@@ -305,10 +304,9 @@ describe('Gasless Response Variants', () => {
305304 ...mockApiResponse ,
306305 gaslessAvailable : false ,
307306 eip7702Authorization : undefined ,
308- depositTx : {
309- ...mockApiResponse . depositTx ! ,
310- eip5792 : undefined ,
311- } ,
307+ depositTx : mockApiResponse . depositTx
308+ ? { ...mockApiResponse . depositTx , eip5792 : undefined }
309+ : undefined ,
312310 } ;
313311
314312 const hasEip5792 = ! ! responseWithNoGasless . depositTx ?. eip5792 ;
@@ -329,7 +327,7 @@ describe('Pimlico Paymaster URL', () => {
329327 { name : 'polygon' , chainId : 137 } ,
330328 ] ;
331329
332- chains . forEach ( ( { name, chainId } ) => {
330+ chains . forEach ( ( { name } ) => {
333331 it ( `should have valid URL format for ${ name } ` , ( ) => {
334332 const url = `https://api.pimlico.io/v2/${ name } /rpc?apikey=test_key` ;
335333
0 commit comments