diff --git a/contracts/DecentHats.sol b/contracts/DecentHats.sol index ca791a6c..ca5e95b4 100644 --- a/contracts/DecentHats.sol +++ b/contracts/DecentHats.sol @@ -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); diff --git a/test/DecentHats.test.ts b/test/DecentHats.test.ts index 10661d09..4c862bc0 100644 --- a/test/DecentHats.test.ts +++ b/test/DecentHats.test.ts @@ -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", () => { @@ -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"); }); });