Skip to content

Commit

Permalink
Revert "SALT -> PEPPER"
Browse files Browse the repository at this point in the history
This reverts commit 3f7ea5c.
  • Loading branch information
adamgall committed Nov 1, 2024
1 parent 70d0732 commit 44d0c52
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,
PEPPER,
SALT,
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,
PEPPER,
SALT,
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 PEPPER
// for the salt, we'll concatenate our static salt
// with the Admin Hat ID
PEPPER,
SALT,
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 PEPPER =
bytes32 public constant SALT =
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(PEPPER)
uint256(SALT)
);
}

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

0 comments on commit 44d0c52

Please sign in to comment.