Skip to content

Conversation

@RonTuretzky
Copy link
Contributor

Summary

Addresses all three unanswered comments from the PR #13 review:

  1. Separate testnet/mainnet secrets: Split shared PRIVATE_KEY/RPC_URL into TESTNET_PRIVATE_KEY/TESTNET_RPC_URL and MAINNET_PRIVATE_KEY/MAINNET_RPC_URL to enable simultaneous deployments to different networks.

  2. Correct mainnet network config: Network configuration already uses correct values (eth.blockscout.com for mainnet, eth-sepolia.blockscout.com for testnet).

  3. Detect etherscan config issues: Added foundry.toml validation that detects and fails early with helpful message if [etherscan] section references ${ETHERSCAN_API_KEY} (which isn't available in this workflow).

Test plan

  • Review workflow changes for correctness
  • Verify secrets are properly scoped per environment
  • Test foundry.toml validation on a config with [etherscan] section

- Split shared PRIVATE_KEY/RPC_URL into separate TESTNET/MAINNET secrets to allow simultaneous testnet and mainnet deployments
- Add foundry.toml validation to detect and fail early if [etherscan] sections reference undefined ETHERSCAN_API_KEY environment variable
- Update README to document new separate testnet/mainnet secrets
- Network config file already has correct mainnet/testnet values (Ethereum vs Sepolia)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants