From 5abdcb27c54c99ec85eb158280d842c34e2d51ca Mon Sep 17 00:00:00 2001 From: Adam Gall Date: Fri, 1 Nov 2024 11:51:08 -0400 Subject: [PATCH] Write test to make sure we have correct SALT --- test/modules/DecentHatsModuleUtils.test.ts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/test/modules/DecentHatsModuleUtils.test.ts b/test/modules/DecentHatsModuleUtils.test.ts index 9f7f4f2..6fc1d97 100644 --- a/test/modules/DecentHatsModuleUtils.test.ts +++ b/test/modules/DecentHatsModuleUtils.test.ts @@ -311,4 +311,12 @@ describe('DecentHatsModuleUtils', () => { expect(event.args.totalAmount).to.equal(hre.ethers.parseEther('100')); }); }); + + describe('SALT', () => { + it('should be a static hardcoded value that never changes for any reason', async () => { + expect(await mockDecentHatsModuleUtils.SALT()).to.equal( + '0x5d0e6ce4fd951366cc55da93f6e79d8b81483109d79676a04bcc2bed6a4b5072', + ); + }); + }); });