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 faff6f4 commit 9e70e35
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 @@ -40,6 +40,7 @@ contract Deploy is Script {

string stdMultisigEnsDomain;
string emergencyMultisigEnsDomain;
string optimisticTokenVotingEnsDomain;

constructor() {
// Implementations
Expand All @@ -59,6 +60,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 @@ -133,7 +135,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 @@ -165,7 +167,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 @@ -199,7 +201,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 9e70e35

Please sign in to comment.