Skip to content

Commit

Permalink
feat: declare the salt in the BaseScript
Browse files Browse the repository at this point in the history
  • Loading branch information
andreivladbrg committed Feb 4, 2025
1 parent 818b26e commit b79fd37
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions script/Base.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ abstract contract BaseScript is Script {
/// @dev The address of the default Sablier admin.
address internal constant DEFAULT_SABLIER_ADMIN = 0xb1bEF51ebCA01EB12001a639bDBbFF6eEcA12B9F;

/// @dev The salt used for deterministic deployments.
bytes32 internal immutable SALT;

/// @dev Included to enable compilation of the script without a $MNEMONIC environment variable.
string internal constant TEST_MNEMONIC = "test test test test test test test test test test test junk";

Expand Down Expand Up @@ -40,6 +43,9 @@ abstract contract BaseScript is Script {
(broadcaster,) = deriveRememberKey({ mnemonic: mnemonic, index: 0 });
}

// Construct the salt for deterministic deployments.
SALT = constructCreate2Salt();

// Populate the admin map.
populateAdminMap();

Expand Down

0 comments on commit b79fd37

Please sign in to comment.