File tree Expand file tree Collapse file tree 1 file changed +4
-12
lines changed
Expand file tree Collapse file tree 1 file changed +4
-12
lines changed Original file line number Diff line number Diff line change @@ -244,12 +244,6 @@ describe('spot swap', () => {
244244
245245 console . log ( '\n\n\n\n\n here \n\n\n\n\n' ) ;
246246
247- await makerDriftClient . initializeSerumFulfillmentConfig (
248- solSpotMarketIndex ,
249- serumMarketPublicKey ,
250- SERUM
251- ) ;
252-
253247 console . log ( '\n\n\n\n\n here \n\n\n\n\n' ) ;
254248
255249 const market = await Market . load (
@@ -364,23 +358,21 @@ describe('spot swap', () => {
364358 }
365359 ) ;
366360
367- const serumConfig = await takerDriftClient . getSerumV3FulfillmentConfig (
368- market . publicKey
369- ) ;
370361 const settleFundsIx = DexInstructions . settleFunds ( {
371362 market : market . publicKey ,
372363 openOrders : takerOpenOrders ,
373364 owner : takerDriftClient . wallet . publicKey ,
374365 // @ts -ignore
375- baseVault : serumConfig . serumBaseVault ,
366+ baseVault : market . _decoded . baseVault ,
376367 // @ts -ignore
377- quoteVault : serumConfig . serumQuoteVault ,
368+ quoteVault : market . _decoded . quoteVault ,
378369 baseWallet : takerWSOL ,
379370 quoteWallet : takerUSDC ,
380371 vaultSigner : getSerumSignerPublicKey (
381372 market . programId ,
382373 market . publicKey ,
383- serumConfig . serumSignerNonce
374+ // @ts -ignore
375+ market . _decoded . vaultSignerNonce ,
384376 ) ,
385377 programId : market . programId ,
386378 } ) ;
You can’t perform that action at this time.
0 commit comments