@@ -290,7 +290,7 @@ describe("Matching Engine", function () {
290290 ownerAssistant . publicKey ,
291291 feeRecipient ,
292292 { ...auctionParams , duration : 0 } ,
293- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
293+ USDC_MINT_ADDRESS ,
294294 ) ;
295295 await expectTxsErr ( payerSigner , txs , "Error Code: ZeroDuration" ) ;
296296 } ) ;
@@ -301,7 +301,7 @@ describe("Matching Engine", function () {
301301 ownerAssistant . publicKey ,
302302 feeRecipient ,
303303 { ...auctionParams , gracePeriod : 0 } ,
304- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
304+ USDC_MINT_ADDRESS ,
305305 ) ;
306306 await expectTxsErr ( payerSigner , txs , "Error Code: ZeroGracePeriod" ) ;
307307 } ) ;
@@ -312,7 +312,7 @@ describe("Matching Engine", function () {
312312 ownerAssistant . publicKey ,
313313 feeRecipient ,
314314 { ...auctionParams , penaltyPeriod : 0 } ,
315- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
315+ USDC_MINT_ADDRESS ,
316316 ) ;
317317 await expectTxsErr ( payerSigner , txs , "Error Code: ZeroPenaltyPeriod" ) ;
318318 } ) ;
@@ -323,7 +323,7 @@ describe("Matching Engine", function () {
323323 ownerAssistant . publicKey ,
324324 feeRecipient ,
325325 { ...auctionParams , userPenaltyRewardBps : 1_000_001 } ,
326- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
326+ USDC_MINT_ADDRESS ,
327327 ) ;
328328 await expectTxsErr ( payerSigner , txs , "Error Code: UserPenaltyRewardBpsTooLarge" ) ;
329329 } ) ;
@@ -334,7 +334,7 @@ describe("Matching Engine", function () {
334334 ownerAssistant . publicKey ,
335335 feeRecipient ,
336336 { ...auctionParams , initialPenaltyBps : 1_000_001 } ,
337- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
337+ USDC_MINT_ADDRESS ,
338338 ) ;
339339 await expectTxsErr ( payerSigner , txs , "Error Code: InitialPenaltyBpsTooLarge" ) ;
340340 } ) ;
@@ -345,7 +345,7 @@ describe("Matching Engine", function () {
345345 ownerAssistant . publicKey ,
346346 feeRecipient ,
347347 { ...auctionParams , minOfferDeltaBps : 1_000_001 } ,
348- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
348+ USDC_MINT_ADDRESS ,
349349 ) ;
350350 await expectTxsErr ( payerSigner , txs , "Error Code: MinOfferDeltaBpsTooLarge" ) ;
351351 } ) ;
@@ -356,7 +356,7 @@ describe("Matching Engine", function () {
356356 ownerAssistant . publicKey ,
357357 feeRecipient ,
358358 { ...auctionParams , securityDepositBase : uint64ToBN ( 0 ) } ,
359- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
359+ USDC_MINT_ADDRESS ,
360360 ) ;
361361 await expectTxsErr ( payerSigner , txs , "Error Code: ZeroSecurityDepositBase" ) ;
362362 } ) ;
@@ -367,7 +367,7 @@ describe("Matching Engine", function () {
367367 ownerAssistant . publicKey ,
368368 feeRecipient ,
369369 { ...auctionParams , securityDepositBps : 1_000_001 } ,
370- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
370+ USDC_MINT_ADDRESS ,
371371 ) ;
372372 await expectTxsErr ( payerSigner , txs , "Error Code: SecurityDepositBpsTooLarge" ) ;
373373 } ) ;
@@ -378,7 +378,7 @@ describe("Matching Engine", function () {
378378 ownerAssistant . publicKey ,
379379 feeRecipient ,
380380 auctionParams ,
381- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
381+ USDC_MINT_ADDRESS ,
382382 ) ;
383383 await expectTxsOk ( payerSigner , txs ) ;
384384
@@ -409,7 +409,7 @@ describe("Matching Engine", function () {
409409 ownerAssistant . publicKey ,
410410 feeRecipient ,
411411 auctionParams ,
412- new SolanaAddress ( USDC_MINT_ADDRESS ) ,
412+ USDC_MINT_ADDRESS ,
413413 ) ;
414414 await expectTxsErr (
415415 payerSigner ,
@@ -704,7 +704,7 @@ describe("Matching Engine", function () {
704704
705705 for ( const endpointChain of endpointChains ) {
706706 const txs = engine . registerRouter (
707- new SolanaAddress ( owner . publicKey ) ,
707+ owner . publicKey ,
708708 endpointChain ,
709709 CHAIN_TO_DOMAIN [ endpointChain ] ! ,
710710 REGISTERED_TOKEN_ROUTERS_V2 [ endpointChain ] ! ,
@@ -717,7 +717,7 @@ describe("Matching Engine", function () {
717717 it ( "Cannot Add Router Endpoint as Non-Owner and Non-Assistant" , async function ( ) {
718718 const endpointChain = "Ethereum" ;
719719 const txs = engine . registerRouter (
720- new SolanaAddress ( payerSigner . address ( ) ) ,
720+ payer . publicKey ,
721721 endpointChain ,
722722 CHAIN_TO_DOMAIN [ endpointChain ] ! ,
723723 REGISTERED_TOKEN_ROUTERS_V2 [ endpointChain ] ! ,
@@ -4187,7 +4187,7 @@ describe("Matching Engine", function () {
41874187
41884188 // Place the initial offer.
41894189 const txs = engine . placeInitialOffer (
4190- new SolanaAddress ( accounts . payer ) ,
4190+ accounts . payer ,
41914191 // @ts -ignore -- may still be a Uint8array payload for testing invalid VAA
41924192 fastMarketOrderVAA ,
41934193 args . offerPrice ,
0 commit comments