@@ -94,14 +94,14 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
9494 } ,
9595 params ,
9696 ) ;
97- const transaction = await this . createTx ( new SolanaAddress ( owner ) . unwrap ( ) , [ ix ] ) ;
97+ const transaction = this . createTx ( new SolanaAddress ( owner ) . unwrap ( ) , [ ix ] ) ;
9898 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.initialize" ) ;
9999 }
100100
101101 async * setPause ( sender : AnySolanaAddress , pause : boolean ) {
102102 const payer = new SolanaAddress ( sender ) . unwrap ( ) ;
103103 const ix = await this . setPauseIx ( { ownerOrAssistant : payer } , pause ) ;
104- const transaction = await this . createTx ( payer , [ ix ] ) ;
104+ const transaction = this . createTx ( payer , [ ix ] ) ;
105105 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.setPause" ) ;
106106 }
107107
@@ -123,7 +123,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
123123 { chain : toChainId ( chain ) , cctpDomain, address, mintRecipient } ,
124124 ) ;
125125
126- const transaction = await this . createTx ( ownerOrAssistant , [ ix ] ) ;
126+ const transaction = this . createTx ( ownerOrAssistant , [ ix ] ) ;
127127 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.registerRouter" ) ;
128128 }
129129
@@ -144,7 +144,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
144144 { chain : toChainId ( chain ) , cctpDomain, address, mintRecipient } ,
145145 ) ;
146146
147- const transaction = await this . createTx ( owner , [ ix ] ) ;
147+ const transaction = this . createTx ( owner , [ ix ] ) ;
148148 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.updateRouter" ) ;
149149 }
150150
@@ -153,7 +153,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
153153
154154 const ix = await this . disableRouterEndpointIx ( { owner } , toChainId ( chain ) ) ;
155155
156- const transaction = await this . createTx ( owner , [ ix ] ) ;
156+ const transaction = this . createTx ( owner , [ ix ] ) ;
157157 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.disableRouter" ) ;
158158 }
159159
@@ -187,7 +187,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
187187 { offerPrice, totalDeposit } ,
188188 ) ;
189189
190- const transaction = await this . createTx ( payer , ixs ) ;
190+ const transaction = this . createTx ( payer , ixs ) ;
191191 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.placeInitialOffer" ) ;
192192 }
193193
@@ -203,7 +203,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
203203
204204 const ixs = await this . improveOfferIx ( { participant, auction } , { offerPrice : offer } ) ;
205205
206- const transaction = await this . createTx ( participant , ixs ) ;
206+ const transaction = this . createTx ( participant , ixs ) ;
207207 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.improveOffer" ) ;
208208 }
209209
@@ -256,7 +256,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
256256 units : 300_000 ,
257257 } ) ;
258258
259- const transaction = await this . createTx ( payer , [ ix , computeIx ] ) ;
259+ const transaction = this . createTx ( payer , [ ix , computeIx ] ) ;
260260 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.executeFastOrder" ) ;
261261 }
262262
@@ -310,7 +310,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
310310
311311 const computeIx = ComputeBudgetProgram . setComputeUnitLimit ( { units : 300_000 } ) ;
312312
313- const transaction = await this . createTx ( payer , [ ix , computeIx ] , lookupTables ) ;
313+ const transaction = this . createTx ( payer , [ ix , computeIx ] , lookupTables ) ;
314314 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.prepareOrderResponse" ) ;
315315 }
316316
@@ -377,16 +377,15 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
377377
378378 ixs . push ( settleIx ) ;
379379
380- const transaction = await this . createTx ( payer , ixs , lookupTables ) ;
381-
380+ const transaction = this . createTx ( payer , ixs , lookupTables ) ;
382381 yield this . createUnsignedTx ( { transaction } , "MatchingEngine.settleAuctionComplete" ) ;
383382 }
384383
385- private async createTx (
384+ private createTx (
386385 payerKey : PublicKey ,
387386 instructions : TransactionInstruction [ ] ,
388387 lookupTables ?: AddressLookupTableAccount [ ] ,
389- ) : Promise < VersionedTransaction > {
388+ ) : VersionedTransaction {
390389 const messageV0 = new TransactionMessage ( {
391390 payerKey,
392391 recentBlockhash : "" ,
0 commit comments