-
Notifications
You must be signed in to change notification settings - Fork 42
Fix: Update hardhat and plugins versions #417
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,8 +3,7 @@ dotenv.config(); | |
|
|
||
| const defaultUrl = "http://url"; | ||
|
|
||
| export const LEDGER_ACCOUNT = | ||
| process.env.LEDGER_ACCOUNT || "0x0000000000000000000000000000000000000000"; | ||
| export const LEDGER_ACCOUNT = process.env.LEDGER_ACCOUNT || undefined; | ||
|
||
| export const BILLIONS_MAINNET_RPC_URL = process.env.BILLIONS_MAINNET_RPC_URL || defaultUrl; | ||
| export const BILLIONS_TESTNET_RPC_URL = process.env.BILLIONS_TESTNET_RPC_URL || defaultUrl; | ||
| export const POLYGON_MAINNET_RPC_URL = process.env.POLYGON_MAINNET_RPC_URL || defaultUrl; | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -92,6 +92,7 @@ export async function verifyContract( | |
| } | ||
|
|
||
| console.log(`Verifying contract at address: ${contractAddress} ...`); | ||
| const chainDescriptor = hre.config.chainDescriptors.get(BigInt(await getChainId())); | ||
| // When verifying if the proxy contract is not verified yet we need to pass the arguments | ||
| // for the proxy contract first, then for proxy admin and finally for the implementation contract | ||
| if (opts.constructorArgsProxy) { | ||
|
|
@@ -102,6 +103,7 @@ export async function verifyContract( | |
| contract: opts.contract, | ||
| constructorArgs: opts.constructorArgsProxy, | ||
| libraries: opts.libraries, | ||
| provider: chainDescriptor?.blockExplorers?.etherscan ? "etherscan" : "blockscout", | ||
| }, | ||
| hre, | ||
| ); | ||
|
|
@@ -116,6 +118,7 @@ export async function verifyContract( | |
| contract: opts.contract, | ||
| constructorArgs: opts.constructorArgsProxyAdmin, | ||
| libraries: opts.libraries, | ||
| provider: chainDescriptor?.blockExplorers?.etherscan ? "etherscan" : "blockscout", | ||
| }, | ||
| hre, | ||
| ); | ||
|
|
@@ -129,6 +132,7 @@ export async function verifyContract( | |
| contract: opts.contract, | ||
| constructorArgs: opts.constructorArgsImplementation, | ||
| libraries: opts.libraries, | ||
| provider: chainDescriptor?.blockExplorers?.etherscan ? "etherscan" : "blockscout", | ||
|
Comment on lines
95
to
135
|
||
| }, | ||
| hre, | ||
| ); | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The block explorer URLs for billions networks have been updated from gateway.fm endpoints to billions.network endpoints. Please ensure these new endpoints are accessible and support the same API as the old ones, as the verification scripts depend on these URLs being correct.