Skip to content

Instantly share code, notes, and snippets.

@MerlinEgalite
Last active December 14, 2022 11:00
Show Gist options
  • Save MerlinEgalite/df3f94a69e309e8bea99e16f5b5e56fe to your computer and use it in GitHub Desktop.
Save MerlinEgalite/df3f94a69e309e8bea99e16f5b5e56fe to your computer and use it in GitHub Desktop.
Command line to verify contracts with forge
forge verify-contract --chain-id 1 --num-of-optimizations 200 --constructor-args $(cast abi-encode "constructor(address)" 0x) --compiler-version v0.8.16 <the_contract_address> src/MyToken.sol:MyToken <your_etherscan_api_key>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment