Skip to content

Commit

Permalink
refactor: moved deploy createx expected to env
Browse files Browse the repository at this point in the history
  • Loading branch information
CarsonCase committed Sep 6, 2024
1 parent fad49b2 commit b30e95e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion script/Base.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ abstract contract BaseScript is Script {
string constant CONFIG_CHAIN_ROOT = "./deployment-config/chains/";

/// Custom base params
ICreateX CREATEX = ICreateX(0xD7d6e6C50507d278b9F43f62Bc7b9310ECeff2C5);
ICreateX immutable CREATEX;

/// @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
3 changes: 2 additions & 1 deletion script/DeployCustomCreatex.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,11 @@ contract DeployCustomCreateX is Script {
string internal mnemonic;
string internal constant TEST_MNEMONIC = "test test test test test test test test test test test junk";

address constant EXPECTED = 0xD7d6e6C50507d278b9F43f62Bc7b9310ECeff2C5;
address immutable EXPECTED;
bytes32 constant SALT = 0x8888888833388888888000000000000000000000000000000000000000000000;

constructor() {
EXPECTED = ICreateX(vm.envAddress("CREATEX"));
address from = vm.envOr({ name: "ETH_FROM", defaultValue: address(0) });
if (from != address(0)) {
broadcaster = from;
Expand Down

0 comments on commit b30e95e

Please sign in to comment.