gagiuntoli / forge_deploy_verify Goto Github PK
View Code? Open in Web Editor NEWSmall example to test Foundry/Forge capabilities
Small example to test Foundry/Forge capabilities
source .env
forge build
forge script script/Counter.s.sol --rpc-url https://polygon-mumbai.g.alchemy.com/v2/$ALCHEMY_API_KEY --broadcast --verify
After that both contracts are well deployed but only 1 is properly verified on Polyscan 0x3A46271e5533E3B24Fc29868EC159bc6256A9a6F, the second one 0x2c41f56375374526ed84d23879d9949ea53cb115 is not:
[⠒] Compiling...
No files changed, compilation skipped
Script ran successfully.
==========================
Estimated total gas used for script: 277453
Estimated amount required: 0.000832359023860958 ETH
==========================
###
Finding wallets for all the necessary addresses...
##
Sending transactions [0 - 1].
⠉ [00:00:00] [##############################################################################################################################################################] 2/2 txes (0.0s)
Transactions saved to: /home/guido/codes/forge_deploy_verify/broadcast/Counter.s.sol/80001/run-latest.json
##
Waiting for receipts.
⠙ [00:00:07] [##########################################################################################################################################################] 2/2 receipts (0.0s)
#####
✅ Hash: 0xe52f426f1e7863ec29547e6655944113a24a18301375ad7411d737ec7d1be4fd
Contract Address: 0x3a46271e5533e3b24fc29868ec159bc6256a9a6f
Block: 28735649
Paid: 0.000320157004588917 ETH (106719 gas * 3.000000043 gwei)
#####
✅ Hash: 0xf9e9beb4c5bb927802b79a5b47b772a7c40f0c60c7bb42975593260f8a32da24
Contract Address: 0x2c41f56375374526ed84d23879d9949ea53cb115
Block: 28735649
Paid: 0.000320121004588401 ETH (106707 gas * 3.000000043 gwei)
Transactions saved to: /home/guido/codes/forge_deploy_verify/broadcast/Counter.s.sol/80001/run-latest.json
==========================
ONCHAIN EXECUTION COMPLETE & SUCCESSFUL. Transaction receipts written to "/home/guido/codes/forge_deploy_verify/broadcast/Counter.s.sol/80001/run-latest.json"
##
Start verification for (2) contracts
Submitting verification for [src/Counter.sol:Counter] "0x3A46271e5533E3B24Fc29868EC159bc6256A9a6F".
Submitting verification for [src/Counter.sol:Counter] "0x3A46271e5533E3B24Fc29868EC159bc6256A9a6F".
Submitting verification for [src/Counter.sol:Counter] "0x3A46271e5533E3B24Fc29868EC159bc6256A9a6F".
Submitting verification for [src/Counter.sol:Counter] "0x3A46271e5533E3B24Fc29868EC159bc6256A9a6F".
Submitting verification for [src/Counter.sol:Counter] "0x3A46271e5533E3B24Fc29868EC159bc6256A9a6F".
Encountered an error verifying this contract:
Response: `NOTOK`
Details: `Invalid API Key`
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.