Skip to content

Commit

Permalink
SALT -> PEPPER
Browse files Browse the repository at this point in the history
  • Loading branch information
adamgall committed Nov 1, 2024
1 parent 1836224 commit 3f7ea5c
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions contracts/modules/DecentHatsCreationModule.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -192,7 +192,7 @@ contract DecentHatsCreationModule is DecentHatsModuleUtils {
// Create Admin Hat's ERC6551 Account
erc6551Registry.createAccount(
hatsAccountImplementation,
SALT,
PEPPER,
block.chainid,
address(hatsProtocol),
adminHatId
Expand All @@ -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
)
)
Expand Down
6 changes: 3 additions & 3 deletions contracts/modules/DecentHatsModuleUtils.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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)
);
}

Expand Down Expand Up @@ -196,7 +196,7 @@ abstract contract DecentHatsModuleUtils {
return
erc6551Registry.createAccount(
hatsAccountImplementation,
SALT,
PEPPER,
block.chainid,
hatsProtocol,
hatId
Expand Down

0 comments on commit 3f7ea5c

Please sign in to comment.