Skip to content

Commit

Permalink
Adding an env var to the deployment script
Browse files Browse the repository at this point in the history
  • Loading branch information
brickpop committed May 15, 2024
1 parent 1babc30 commit ed4c313
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions script/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ contract Deploy is Script {

string stdMultisigEnsDomain;
string emergencyMultisigEnsDomain;
string optimisticTokenVotingEnsDomain;

constructor() {
// Implementations
Expand All @@ -60,6 +61,7 @@ contract Deploy is Script {

stdMultisigEnsDomain = vm.envString("STD_MULTISIG_ENS_DOMAIN");
emergencyMultisigEnsDomain = vm.envString("EMERGENCY_MULTISIG_ENS_DOMAIN");
optimisticTokenVotingEnsDomain = vm.envString("OPTIMISTIC_TOKEN_VOTING_ENS_DOMAIN");

// JSON list of members
string memory root = vm.projectRoot();
Expand Down Expand Up @@ -152,7 +154,7 @@ contract Deploy is Script {

// Publish repo
PluginRepo pluginRepo = PluginRepoFactory(pluginRepoFactory).createPluginRepoWithFirstVersion(
stdMultisigEnsDomain, address(pluginSetup), msg.sender, "0x", "0x"
stdMultisigEnsDomain, address(pluginSetup), msg.sender, "", ""
);

bytes memory settingsData = pluginSetup.encodeInstallationParameters(
Expand Down Expand Up @@ -184,7 +186,7 @@ contract Deploy is Script {

// Publish repo
PluginRepo pluginRepo = PluginRepoFactory(pluginRepoFactory).createPluginRepoWithFirstVersion(
emergencyMultisigEnsDomain, address(pluginSetup), msg.sender, "0x", "0x"
emergencyMultisigEnsDomain, address(pluginSetup), msg.sender, "", ""
);

bytes memory settingsData = pluginSetup.encodeInstallationParameters(
Expand Down Expand Up @@ -218,7 +220,7 @@ contract Deploy is Script {

// Publish repo
pluginRepo = PluginRepoFactory(pluginRepoFactory).createPluginRepoWithFirstVersion(
"ens-of-the-optimistic-token-voting", address(pluginSetup), msg.sender, "0x", "0x"
optimisticTokenVotingEnsDomain, address(pluginSetup), msg.sender, "", ""
);

// Plugin settings
Expand Down

0 comments on commit ed4c313

Please sign in to comment.