@@ -1234,7 +1234,7 @@ describe("Transaction", () => {
12341234 ] ,
12351235 } ) ;
12361236
1237- await tx . completeByFeePayer ( client , mockFeePayer1 , mockFeePayer2 ) ;
1237+ await tx . completeByFeePayer ( mockFeePayer1 , mockFeePayer2 ) ;
12381238
12391239 expect ( mockFeePayer1 . prepareTransaction ) . toHaveBeenCalledWith ( tx ) ;
12401240 expect ( mockFeePayer2 . prepareTransaction ) . toHaveBeenCalledWith ( tx ) ;
@@ -1252,7 +1252,7 @@ describe("Transaction", () => {
12521252 ] ,
12531253 } ) ;
12541254
1255- await tx . completeByFeePayer ( client , mockFeePayer1 , mockFeePayer2 ) ;
1255+ await tx . completeByFeePayer ( mockFeePayer1 , mockFeePayer2 ) ;
12561256
12571257 // Verify both methods were called
12581258 expect ( mockFeePayer1 . prepareTransaction ) . toHaveBeenCalled ( ) ;
@@ -1293,7 +1293,7 @@ describe("Transaction", () => {
12931293 ] ,
12941294 } ) ;
12951295
1296- await tx . completeByFeePayer ( client , mockFeePayer1 ) ;
1296+ await tx . completeByFeePayer ( mockFeePayer1 ) ;
12971297
12981298 expect ( mockFeePayer1 . prepareTransaction ) . toHaveBeenCalledTimes ( 1 ) ;
12991299 expect ( mockFeePayer1 . completeTxFee ) . toHaveBeenCalledTimes ( 1 ) ;
@@ -1312,7 +1312,7 @@ describe("Transaction", () => {
13121312 } ) ;
13131313
13141314 // Should not throw with empty fee payer list
1315- await expect ( tx . completeByFeePayer ( client ) ) . resolves . not . toThrow ( ) ;
1315+ await expect ( tx . completeByFeePayer ( ) ) . resolves . not . toThrow ( ) ;
13161316 } ) ;
13171317
13181318 it ( "should handle multiple fee payers in sequence" , async ( ) => {
@@ -1349,7 +1349,7 @@ describe("Transaction", () => {
13491349 callOrder . push ( "complete2" ) ;
13501350 } ) ;
13511351
1352- await tx . completeByFeePayer ( client , mockFeePayer1 , mockFeePayer2 ) ;
1352+ await tx . completeByFeePayer ( mockFeePayer1 , mockFeePayer2 ) ;
13531353
13541354 // Verify order: all prepareTransaction calls first, then all completeTxFee calls
13551355 expect ( callOrder ) . toEqual ( [
@@ -1375,9 +1375,9 @@ describe("Transaction", () => {
13751375 mockFeePayer1 . prepareTransaction as ReturnType < typeof vi . fn >
13761376 ) . mockRejectedValue ( error ) ;
13771377
1378- await expect (
1379- tx . completeByFeePayer ( client , mockFeePayer1 ) ,
1380- ) . rejects . toThrow ( "Prepare transaction failed" ) ;
1378+ await expect ( tx . completeByFeePayer ( mockFeePayer1 ) ) . rejects . toThrow (
1379+ "Prepare transaction failed" ,
1380+ ) ;
13811381 } ) ;
13821382
13831383 it ( "should propagate errors from completeTxFee" , async ( ) => {
@@ -1395,9 +1395,9 @@ describe("Transaction", () => {
13951395 mockFeePayer1 . completeTxFee as ReturnType < typeof vi . fn >
13961396 ) . mockRejectedValue ( error ) ;
13971397
1398- await expect (
1399- tx . completeByFeePayer ( client , mockFeePayer1 ) ,
1400- ) . rejects . toThrow ( "Complete fee failed" ) ;
1398+ await expect ( tx . completeByFeePayer ( mockFeePayer1 ) ) . rejects . toThrow (
1399+ "Complete fee failed" ,
1400+ ) ;
14011401 } ) ;
14021402
14031403 it ( "should handle fee payer that modifies transaction in prepareTransaction" , async ( ) => {
@@ -1427,7 +1427,7 @@ describe("Transaction", () => {
14271427 mockFeePayer1 . prepareTransaction as ReturnType < typeof vi . fn >
14281428 ) . mockResolvedValue ( modifiedTx ) ;
14291429
1430- await tx . completeByFeePayer ( client , mockFeePayer1 ) ;
1430+ await tx . completeByFeePayer ( mockFeePayer1 ) ;
14311431
14321432 // prepareTransaction is called with a clone of the original transaction
14331433 expect ( mockFeePayer1 . prepareTransaction ) . toHaveBeenCalled ( ) ;
0 commit comments