From a026da5e013a80a1278c1433e0b00686d859392e Mon Sep 17 00:00:00 2001 From: "David E. Perez Negron R." Date: Mon, 29 Apr 2024 17:23:40 -0600 Subject: [PATCH] Change private key env name --- deploy.sh | 2 +- script/DCO2s.s.sol | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 1f664d6..717217c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -2,4 +2,4 @@ . ./.env forge script script/DCO2s.s.sol:DCO2sScript \ --fork-url $PROVIDER_URL \ - --private-key $PK0 --broadcast + --private-key $PRIVATE_KEY --broadcast diff --git a/script/DCO2s.s.sol b/script/DCO2s.s.sol index 5563fdd..a4b4024 100644 --- a/script/DCO2s.s.sol +++ b/script/DCO2s.s.sol @@ -28,7 +28,7 @@ contract DCO2sScript is Script { // run is the entry point function run() public { // startBroadcast and stopBraodcast will let us execute transactions anything between them - uint256 deployerPrivateKey = vm.envUint("PK0"); + uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY"); vm.startBroadcast(deployerPrivateKey); // here we just need to deploy a new contract dco2sc = new DCO2s(defaultAdmin, minter, baseURI, name, symbol);