From 0e7b310c0ff9994e2681ba066b9a5c42752d926b Mon Sep 17 00:00:00 2001 From: Enmilo Date: Fri, 31 Jul 2026 22:53:36 +0600 Subject: [PATCH] fix(escrow): use accountsPartial instead of deprecated accounts in tests --- tokens/escrow/anchor/tests/escrow.test.ts | 4 ++-- tokens/escrow/anchor/tests/litesvm.test.ts | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/tokens/escrow/anchor/tests/escrow.test.ts b/tokens/escrow/anchor/tests/escrow.test.ts index 95b89d455..abab5b38b 100644 --- a/tokens/escrow/anchor/tests/escrow.test.ts +++ b/tokens/escrow/anchor/tests/escrow.test.ts @@ -129,7 +129,7 @@ describe('escrow', async () => { const transactionSignature = await program.methods .makeOffer(offerId, tokenAOfferedAmount, tokenBWantedAmount) - .accounts({ ...accounts }) + .accountsPartial({ ...accounts }) .signers([alice]) .rpc(); @@ -152,7 +152,7 @@ describe('escrow', async () => { it("Puts the tokens from the vault into Bob's account, and gives Alice Bob's tokens, when Bob takes an offer", async () => { const transactionSignature = await program.methods .takeOffer() - .accounts({ ...accounts }) + .accountsPartial({ ...accounts }) .signers([bob]) .rpc(); diff --git a/tokens/escrow/anchor/tests/litesvm.test.ts b/tokens/escrow/anchor/tests/litesvm.test.ts index 3dd4c9893..cd80f1886 100644 --- a/tokens/escrow/anchor/tests/litesvm.test.ts +++ b/tokens/escrow/anchor/tests/litesvm.test.ts @@ -152,7 +152,7 @@ describe('Escrow LiteSVM example', () => { const _transactionSignature = await program.methods .makeOffer(offerId, tokenAOfferedAmount, tokenBWantedAmount) - .accounts({ ...accounts }) + .accountsPartial({ ...accounts }) .signers([alice]) .rpc(); @@ -174,7 +174,7 @@ describe('Escrow LiteSVM example', () => { const take = async () => { const _transactionSignature = await program.methods .takeOffer() - .accounts({ ...accounts }) + .accountsPartial({ ...accounts }) .signers([bob]) .rpc();