From 6337cc5eaca893e717e272ede6fb9c8f08da44e9 Mon Sep 17 00:00:00 2001 From: gretzke Date: Tue, 17 Oct 2023 21:58:54 +0200 Subject: [PATCH] Update script names --- scripts/1.0.0/{Deploy.s.sol => Deploy.goerli.s.sol} | 0 scripts/1.1.0/Deploy.s.sol | 11 +---------- ...ager.s.sol => UpgradeEmissionManager.goerli.s.sol} | 0 3 files changed, 1 insertion(+), 10 deletions(-) rename scripts/1.0.0/{Deploy.s.sol => Deploy.goerli.s.sol} (100%) rename scripts/1.1.0/{UpgradeEmissionManager.s.sol => UpgradeEmissionManager.goerli.s.sol} (100%) 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