Change private key env name
This commit is contained in:
parent
7df29a2461
commit
a026da5e01
|
@ -2,4 +2,4 @@
|
||||||
. ./.env
|
. ./.env
|
||||||
forge script script/DCO2s.s.sol:DCO2sScript \
|
forge script script/DCO2s.s.sol:DCO2sScript \
|
||||||
--fork-url $PROVIDER_URL \
|
--fork-url $PROVIDER_URL \
|
||||||
--private-key $PK0 --broadcast
|
--private-key $PRIVATE_KEY --broadcast
|
||||||
|
|
|
@ -28,7 +28,7 @@ contract DCO2sScript is Script {
|
||||||
// run is the entry point
|
// run is the entry point
|
||||||
function run() public {
|
function run() public {
|
||||||
// startBroadcast and stopBraodcast will let us execute transactions anything between them
|
// 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);
|
vm.startBroadcast(deployerPrivateKey);
|
||||||
// here we just need to deploy a new contract
|
// here we just need to deploy a new contract
|
||||||
dco2sc = new DCO2s(defaultAdmin, minter, baseURI, name, symbol);
|
dco2sc = new DCO2s(defaultAdmin, minter, baseURI, name, symbol);
|
||||||
|
|
Loading…
Reference in New Issue