Skip to content

Commit

Permalink
Update name of KeyValuePair key
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Jul 5, 2024
1 parent 4d22772 commit d7ae2de
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion contracts/DecentHats.sol
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ contract DecentHats {
);

string[] memory keys = new string[](1);
keys[0] = "hatsTreeId";
keys[0] = "topHatId";

string[] memory values = new string[](1);
values[0] = Strings.toString(topHatId);
Expand Down
4 changes: 2 additions & 2 deletions test/DecentHats.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ describe("DecentHats", () => {
it("Emits some hatsTreeId ValueUpdated events", async () => {
await expect(createAndDeclareTreeTx)
.to.emit(keyValuePairs, "ValueUpdated")
.withArgs(gnosisSafeAddress, "hatsTreeId", "0");
.withArgs(gnosisSafeAddress, "topHatId", "0");
});

describe("Multiple calls", () => {
Expand Down Expand Up @@ -285,7 +285,7 @@ describe("DecentHats", () => {
it("Creates Top Hats with sequential IDs", async () => {
await expect(createAndDeclareTreeTx2)
.to.emit(keyValuePairs, "ValueUpdated")
.withArgs(gnosisSafeAddress, "hatsTreeId", "4");
.withArgs(gnosisSafeAddress, "topHatId", "4");
});
});

Expand Down

0 comments on commit d7ae2de

Please sign in to comment.