Skip to content

Commit

Permalink
Fix token proxy tests and change values to make functionality more cl…
Browse files Browse the repository at this point in the history
…ear (coral-xyz#108)
  • Loading branch information
austinabell authored Mar 12, 2021
1 parent 0603137 commit 1d19a0a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions examples/spl/token-proxy/tests/token-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down

0 comments on commit 1d19a0a

Please sign in to comment.