@@ -303,7 +303,7 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
303
303
304
304
const computeIx = ComputeBudgetProgram . setComputeUnitLimit ( { units : 300_000 } ) ;
305
305
306
- const transaction = await this . createTx ( payer , [ ix , computeIx ] , undefined , lookupTables ) ;
306
+ const transaction = await this . createTx ( payer , [ ix , computeIx ] , lookupTables ) ;
307
307
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.prepareOrderResponse" ) ;
308
308
}
309
309
@@ -356,12 +356,8 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
356
356
auction,
357
357
} ) ;
358
358
} else {
359
- return this . settleAuctionNoneCctpIx (
360
- {
361
- payer,
362
- fastVaa,
363
- preparedOrderResponse,
364
- } ,
359
+ return await this . settleAuctionNoneCctpIx (
360
+ { payer, fastVaa, preparedOrderResponse } ,
365
361
{ targetChain : toChainId ( fast . payload . targetChain ) } ,
366
362
) ;
367
363
}
@@ -376,23 +372,19 @@ export class SolanaMatchingEngine<N extends Network, C extends SolanaChains>
376
372
377
373
ixs . push ( settleIx ) ;
378
374
379
- const transaction = await this . createTx ( payer , ixs , undefined , lookupTables ) ;
375
+ const transaction = await this . createTx ( payer , ixs , lookupTables ) ;
380
376
381
377
yield this . createUnsignedTx ( { transaction } , "MatchingEngine.settleAuctionComplete" ) ;
382
378
}
383
379
384
380
private async createTx (
385
381
payerKey : PublicKey ,
386
382
instructions : TransactionInstruction [ ] ,
387
- recentBlockhash ?: string ,
388
383
lookupTables ?: AddressLookupTableAccount [ ] ,
389
384
) : Promise < VersionedTransaction > {
390
- if ( ! recentBlockhash )
391
- ( { blockhash : recentBlockhash } = await this . _connection . getLatestBlockhash ( ) ) ;
392
-
393
385
const messageV0 = new TransactionMessage ( {
394
386
payerKey,
395
- recentBlockhash,
387
+ recentBlockhash : "" ,
396
388
instructions,
397
389
} ) . compileToV0Message ( lookupTables ) ;
398
390
return new VersionedTransaction ( messageV0 ) ;
0 commit comments