Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Automatically verify the contract on Etherscan #41

Open
javiersuweijie opened this issue Oct 16, 2024 · 1 comment
Open

Automatically verify the contract on Etherscan #41

javiersuweijie opened this issue Oct 16, 2024 · 1 comment
Labels
enhancement New feature or request medium

Comments

@javiersuweijie
Copy link
Collaborator

Running this with the Etherscan API Key works but best if this can be done on every contract deployment.

forge verify-contract 0xb63922CCEA5491902b2a3000F1A185C825a4Fd31 src/contract.sol:Contract --chain sepolia --compiler-version 0.8.27 --guess-constructor-args -r https://1rpc.io/sepolia
@javiersuweijie javiersuweijie added enhancement New feature or request medium labels Oct 16, 2024
@Divide-By-0
Copy link
Member

You should also be able to just do it via --verify on the deploy, but when I added that to the .sh script, it doesn't seem to update. I also updated the environment variable to include an etherscan API key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request medium
Projects
None yet
Development

No branches or pull requests

2 participants