diff --git a/scripts/1.0.0/Deploy.s.sol b/scripts/1.0.0/Deploy.goerli.s.sol similarity index 100% rename from scripts/1.0.0/Deploy.s.sol rename to scripts/1.0.0/Deploy.goerli.s.sol diff --git a/scripts/1.1.0/Deploy.s.sol b/scripts/1.1.0/Deploy.s.sol index c510c16..a694c90 100644 --- a/scripts/1.1.0/Deploy.s.sol +++ b/scripts/1.1.0/Deploy.s.sol @@ -11,17 +11,8 @@ import {PolygonMigration} from "../../src/PolygonMigration.sol"; contract Deploy is Script { using stdJson for string; - string internal constant TEST_MNEMONIC = "test test test test test test test test test test test junk"; - uint256 public deployerPrivateKey; - - constructor() { - deployerPrivateKey = vm.envOr({name: "PRIVATE_KEY", defaultValue: uint256(0)}); - if (deployerPrivateKey == 0) { - (, deployerPrivateKey) = deriveRememberKey({mnemonic: TEST_MNEMONIC, index: 0}); - } - } - function run() public { + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); string memory input = vm.readFile("scripts/1.1.0/input.json"); string memory chainIdSlug = string(abi.encodePacked('["', vm.toString(block.chainid), '"]')); address matic = input.readAddress(string.concat(chainIdSlug, ".matic")); diff --git a/scripts/1.1.0/UpgradeEmissionManager.s.sol b/scripts/1.1.0/UpgradeEmissionManager.goerli.s.sol similarity index 100% rename from scripts/1.1.0/UpgradeEmissionManager.s.sol rename to scripts/1.1.0/UpgradeEmissionManager.goerli.s.sol