Skip to content
This repository has been archived by the owner on Feb 5, 2025. It is now read-only.

Commit

Permalink
fix(test): bla bla
Browse files Browse the repository at this point in the history
  • Loading branch information
bitbeckers committed Mar 13, 2024
1 parent fc0087c commit 5b73030
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 6 deletions.
12 changes: 7 additions & 5 deletions graph/tests/hypercert-minter-allowlist.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ describe("Describe entity assertions", () => {

let allowlistCreatedEvent = createAllowlistCreatedEvent(
tokenID,
Bytes.fromUTF8("MerkleRoot")
Bytes.fromUTF8("MerkleRoot"),
);

handleAllowlistCreated(allowlistCreatedEvent);
Expand All @@ -33,9 +33,11 @@ describe("Describe entity assertions", () => {

test("AllowlistCreated generates one allowlist entity", () => {
let merkleRoot = Bytes.fromUTF8("MerkleRoot");
let allowlistID = getDefaultContractAddress()
.toHexString()
.concat("-".concat(BigInt.fromI64(1).toString()));
let allowlistID = "1-".concat(
getDefaultContractAddress()
.toHexString()
.concat("-".concat(BigInt.fromI64(1).toString())),
);

assert.entityCount("Allowlist", 1);
assert.entityCount("Claim", 0);
Expand All @@ -46,7 +48,7 @@ describe("Describe entity assertions", () => {
"Allowlist",
allowlistID,
"root",
merkleRoot.toHexString()
merkleRoot.toHexString(),
);
assert.fieldEquals("Allowlist", allowlistID, "claim", allowlistID);
});
Expand Down
2 changes: 1 addition & 1 deletion graph/tests/hypercert-minter-fraction.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ describe("Describe entity assertions", () => {
"ClaimToken",
fractionId,
"claim",
getDefaultContractAddress().toHexString().concat("-1"),
"1-".concat(getDefaultContractAddress().toHexString().concat("-1")),
);
assert.fieldEquals("ClaimToken", fractionId, "owner", from.toHexString());
assert.fieldEquals("ClaimToken", fractionId, "units", "10000");
Expand Down

0 comments on commit 5b73030

Please sign in to comment.