Skip to content

Commit

Permalink
Update script names
Browse files Browse the repository at this point in the history
  • Loading branch information
gretzke committed Oct 17, 2023
1 parent 3d0237d commit 6337cc5
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 10 deletions.
File renamed without changes.
11 changes: 1 addition & 10 deletions scripts/1.1.0/Deploy.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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"));
Expand Down
File renamed without changes.

0 comments on commit 6337cc5

Please sign in to comment.