Fix token proxy tests and change values to make functionality more clear (#108)

This commit is contained in:
Austin Abell 2021-03-12 12:11:03 -05:00 committed by GitHub
parent 060313725e
commit 1d19a0a774
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -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,