From d7ae2debfa2e66092d34a4d486875292b844b50a Mon Sep 17 00:00:00 2001 From: Adam Gall Date: Thu, 4 Jul 2024 23:33:18 -0400 Subject: [PATCH] Update name of KeyValuePair key --- contracts/DecentHats.sol | 2 +- test/DecentHats.test.ts | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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"); }); });