Skip to content

Commit 679db5e

Browse files
authored
fix(escrow): use accountsPartial instead of deprecated accounts in tests (#660)
1 parent 5f48511 commit 679db5e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

tokens/escrow/anchor/tests/escrow.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ describe('escrow', async () => {
129129

130130
const transactionSignature = await program.methods
131131
.makeOffer(offerId, tokenAOfferedAmount, tokenBWantedAmount)
132-
.accounts({ ...accounts })
132+
.accountsPartial({ ...accounts })
133133
.signers([alice])
134134
.rpc();
135135

@@ -152,7 +152,7 @@ describe('escrow', async () => {
152152
it("Puts the tokens from the vault into Bob's account, and gives Alice Bob's tokens, when Bob takes an offer", async () => {
153153
const transactionSignature = await program.methods
154154
.takeOffer()
155-
.accounts({ ...accounts })
155+
.accountsPartial({ ...accounts })
156156
.signers([bob])
157157
.rpc();
158158

tokens/escrow/anchor/tests/litesvm.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ describe('Escrow LiteSVM example', () => {
152152

153153
const _transactionSignature = await program.methods
154154
.makeOffer(offerId, tokenAOfferedAmount, tokenBWantedAmount)
155-
.accounts({ ...accounts })
155+
.accountsPartial({ ...accounts })
156156
.signers([alice])
157157
.rpc();
158158

@@ -174,7 +174,7 @@ describe('Escrow LiteSVM example', () => {
174174
const take = async () => {
175175
const _transactionSignature = await program.methods
176176
.takeOffer()
177-
.accounts({ ...accounts })
177+
.accountsPartial({ ...accounts })
178178
.signers([bob])
179179
.rpc();
180180

0 commit comments

Comments
 (0)