Skip to content

Commit

Permalink
better test language
Browse files Browse the repository at this point in the history
  • Loading branch information
lpopo0856 committed Jun 6, 2023
1 parent 87934bb commit eb82bf9
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions test/feralfile_exhibition_v4.js
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ contract("FeralfileExhibitionV4", async (accounts) => {
],
true
],
{ from: accounts[5], value: 0 }
{ from: accounts[5], value: 0 } // itx relay
);
const ownerOfToken0 = await this.exhibition.ownerOf(1000000);
const ownerOfToken1 = await this.exhibition.ownerOf(1000001);
Expand All @@ -281,19 +281,19 @@ contract("FeralfileExhibitionV4", async (accounts) => {
(
BigInt(acc3BalanceAfter) - BigInt(acc3BalanceBefore)
).toString(),
BigInt((0.23 * 1e18 * 80) / 100).toString()
BigInt(((0.25 - 0.02) * 1e18 * 80) / 100).toString()
);
assert.equal(
(
BigInt(acc4BalanceAfter) - BigInt(acc4BalanceBefore)
).toString(),
BigInt((0.23 * 1e18 * 20) / 100).toString()
BigInt(((0.25 - 0.02) * 1e18 * 20) / 100).toString()
);

// Check vault contract balance
assert.equal(
BigInt(vaultBalanceAfter).toString(),
BigInt(0.25 * 1e18).toString()
BigInt((0.5 - 0.25) * 1e18).toString()
);
} catch (err) {
console.log(err);
Expand Down

0 comments on commit eb82bf9

Please sign in to comment.