From 1d19a0a7748431eefb3c03b70e858862eb268aba Mon Sep 17 00:00:00 2001 From: Austin Abell Date: Fri, 12 Mar 2021 12:11:03 -0500 Subject: [PATCH] Fix token proxy tests and change values to make functionality more clear (#108) --- examples/spl/token-proxy/tests/token-proxy.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/examples/spl/token-proxy/tests/token-proxy.js b/examples/spl/token-proxy/tests/token-proxy.js index 25386e9d..0c7ebdf8 100644 --- a/examples/spl/token-proxy/tests/token-proxy.js +++ b/examples/spl/token-proxy/tests/token-proxy.js @@ -35,7 +35,7 @@ describe("token", () => { }); it("Transfers a token", async () => { - await program.rpc.proxyTransfer(new anchor.BN(500), { + await program.rpc.proxyTransfer(new anchor.BN(400), { accounts: { authority: provider.wallet.publicKey, to, @@ -47,12 +47,12 @@ describe("token", () => { const fromAccount = await getTokenAccount(provider, from); const toAccount = await getTokenAccount(provider, to); - assert.ok(fromAccount.amount.eq(new anchor.BN(500))); - assert.ok(fromAccount.amount.eq(new anchor.BN(500))); + assert.ok(fromAccount.amount.eq(new anchor.BN(600))); + assert.ok(toAccount.amount.eq(new anchor.BN(400))); }); it("Burns a token", async () => { - await program.rpc.proxyBurn(new anchor.BN(499), { + await program.rpc.proxyBurn(new anchor.BN(399), { accounts: { authority: provider.wallet.publicKey, mint,