trying to deploy in hardhat #2118
Answered
by
othaime-en
samuel33333334455666
asked this question in
Q&A
-
Samuel@DESKTOP-DEM50G5 MINGW64 ~/hardhat-simple-storage1-fcc (master) $ npx hardhat run scripts/deploy.js --network rinkeby
npm WARN config global `--global`, `--local` are deprecated. Use `--location=global` instead.
Compiled 1 Solidity file successfully
Deploying contract...
Deployed contract to: 0x2C5d74CCC179B3a0164bE87310418142aC2Ad5b2
Waiting for block txes.....
Verifying contract...
NomicLabsHardhatPluginError: You are trying to verify a contract in 'rinkeby', but no API token was found for this network. Please provide one in your hardhat config. For example:
{
...
etherscan: {
apiKey: {
rinkeby: 'your API key'
}
}
}
See https://etherscan.io/apis
at throwMissingApiKeyError (C:\Users\Samuel\hardhat-simple-storage1-fcc\node_modules\@nomiclabs\hardhat-etherscan\src\resolveEtherscanApiKey.ts:27:9)
at resolveEtherscanApiKey (C:\Users\Samuel\hardhat-simple-storage1-fcc\node_modules\@nomiclabs\hardhat-etherscan\src\resolveEtherscanApiKey.ts:10:5)
at SimpleTaskDefinition.verifySubtask [as action] (C:\Users\Samuel\hardhat-simple-storage1-fcc\node_modules\@nomiclabs\hardhat-etherscan\src\index.ts:211:49)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at Environment._runTaskDefinition (C:\Users\Samuel\hardhat-simple-storage1-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:219:14)
at Environment.run (C:\Users\Samuel\hardhat-simple-storage1-fcc\node_modules\hardhat\src\internal\core\runtime-environment.ts:131:14)
at verify (C:\Users\Samuel\hardhat-simple-storage1-fcc\scripts\deploy.js:32:7)
at main (C:\Users\Samuel\hardhat-simple-storage1-fcc\scripts\deploy.js:15:5)
Current Value is: 0
Updated Value is: 7 |
Beta Was this translation helpful? Give feedback.
Answered by
othaime-en
Aug 27, 2022
Replies: 1 comment 5 replies
-
Hey @samuel33333334455666 please share you |
Beta Was this translation helpful? Give feedback.
5 replies
Answer selected by
samuel33333334455666
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @samuel33333334455666 please share you
hardhat.config.js
file