diff --git a/contracts/modules/DecentHatsCreationModule.sol b/contracts/modules/DecentHatsCreationModule.sol index 50da9aa..5df50a4 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, - PEPPER, + SALT, block.chainid, address(hatsProtocol), topHatId @@ -192,7 +192,7 @@ contract DecentHatsCreationModule is DecentHatsModuleUtils { // Create Admin Hat's ERC6551 Account erc6551Registry.createAccount( hatsAccountImplementation, - PEPPER, + SALT, 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 PEPPER + // for the salt, we'll concatenate our static salt // with the Admin Hat ID - PEPPER, + SALT, adminHatId ) ) diff --git a/contracts/modules/DecentHatsModuleUtils.sol b/contracts/modules/DecentHatsModuleUtils.sol index 4e25f83..7436ba7 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 PEPPER = + bytes32 public constant SALT = 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(PEPPER) + uint256(SALT) ); } @@ -196,7 +196,7 @@ abstract contract DecentHatsModuleUtils { return erc6551Registry.createAccount( hatsAccountImplementation, - PEPPER, + SALT, block.chainid, hatsProtocol, hatId