Skip to content

Commit 9eeb04c

Browse files
updated scripts
1 parent 40b8292 commit 9eeb04c

File tree

3 files changed

+10
-2
lines changed

3 files changed

+10
-2
lines changed

.env.example

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ MAINNET_RPC_URL=
22
SEPOLIA_RPC_URL=
33
PRIVATE_KEY=
44
MAINNET_PRIVATE_KEY=
5-
ETHERSCAN_KEY=
5+
ETHERSCAN_API_KEY=

foundry.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,10 @@ fuzz_runs = 1000
1717
verbosity = 4
1818

1919
gas_reports = ["Echo"]
20+
21+
# Config
22+
[rpc_endpoints]
23+
sepolia = "${SEPOLIA_RPC_URL}"
24+
25+
[etherscan]
26+
sepolia = { key = "${ETHERSCAN_API_KEY}" }

script/DeployEcho.s.sol

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ contract DeployEcho is Script {
99
function test() public {}
1010

1111
function run() external {
12-
vm.startBroadcast();
12+
uint256 deployerPrivateKey = vm.envUint("PRIVATE_KEY");
13+
vm.startBroadcast(deployerPrivateKey);
1314
new Echo({owner: address(0x213bE2f484Ab480db4f18b0Fe4C38e1C25877f09)});
1415

1516
vm.stopBroadcast();

0 commit comments

Comments
 (0)