diff --git a/contracts/modules/DecentHatsCreationModule.sol b/contracts/modules/DecentHatsCreationModule.sol index 5df50a4..50da9aa 100644 --- a/contracts/modules/DecentHatsCreationModule.sol +++ b/contracts/modules/DecentHatsCreationModule.sol @@ -138,7 +138,7 @@ contract DecentHatsCreationModule is DecentHatsModuleUtils { // Create Top Hat's ERC6551 Account topHatAccount = erc6551Registry.createAccount( hatsAccountImplementation, - SALT, + PEPPER, block.chainid, address(hatsProtocol), topHatId @@ -192,7 +192,7 @@ contract DecentHatsCreationModule is DecentHatsModuleUtils { // Create Admin Hat's ERC6551 Account erc6551Registry.createAccount( hatsAccountImplementation, - SALT, + PEPPER, block.chainid, address(hatsProtocol), adminHatId @@ -205,9 +205,9 @@ contract DecentHatsCreationModule is DecentHatsModuleUtils { uint256( keccak256( abi.encodePacked( - // for the salt, we'll concatenate our static salt + // for the salt, we'll concatenate our static PEPPER // with the Admin Hat ID - SALT, + PEPPER, adminHatId ) ) diff --git a/contracts/modules/DecentHatsModuleUtils.sol b/contracts/modules/DecentHatsModuleUtils.sol index f241208..3dd44c9 100644 --- a/contracts/modules/DecentHatsModuleUtils.sol +++ b/contracts/modules/DecentHatsModuleUtils.sol @@ -11,7 +11,7 @@ import {IHatsModuleFactory} from "../interfaces/hats/IHatsModuleFactory.sol"; import {ISablierV2LockupLinear} from "../interfaces/sablier/ISablierV2LockupLinear.sol"; abstract contract DecentHatsModuleUtils { - bytes32 public constant SALT = + bytes32 public constant PEPPER = 0x5d0e6ce4fd951366cc55da93f6e79d8b81483109d79676a04bcc2bed6a4b5072; struct SablierStreamParams { @@ -112,7 +112,7 @@ abstract contract DecentHatsModuleUtils { hatsProtocol.getNextId(adminHatId), abi.encode(topHatId, uint256(0)), // [BALLOT_BOX_ID, ADMIN_HAT_ID] abi.encode(termEndDateTs), - uint256(SALT) + uint256(PEPPER) ); } @@ -196,7 +196,7 @@ abstract contract DecentHatsModuleUtils { return erc6551Registry.createAccount( hatsAccountImplementation, - SALT, + PEPPER, block.chainid, hatsProtocol, hatId