Skip to content

Commit

Permalink
Apply Rabbit suggestions
Browse files Browse the repository at this point in the history
Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
  • Loading branch information
ChiTimesChi and coderabbitai[bot] authored Apr 3, 2024
1 parent 83aa569 commit 995381b
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
3 changes: 2 additions & 1 deletion packages/solidity-devops/js/forgeVerifyContract.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,12 @@ if (!deployment) {
}
const chainVerificationOptions = readChainVerificationOptions(chainName)
if (!chainVerificationOptions) {
process.exit(0)
process.exit(1)
}
const { address, constructorArgs } = deployment
if (!address) {
logError(`Missing address in deployment file for ${contractAlias}`)
process.exit(1)
process.exit(0)
}
if (!constructorArgs) {
Expand Down
2 changes: 1 addition & 1 deletion packages/solidity-devops/js/utils/etherscan.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ const getRequestStatus = (chainName, actionName, guid) => {
}
return response
}
logError(`Request not completed after ${MAX_ATTEMPTS} attempts`)
logError(`Request with GUID ${guid} not completed after ${MAX_ATTEMPTS} attempts. Consider checking the network status or increasing the retry interval.`)

Check warning on line 67 in packages/solidity-devops/js/utils/etherscan.js

View workflow job for this annotation

GitHub Actions / lint

Replace ``Request·with·GUID·${guid}·not·completed·after·${MAX_ATTEMPTS}·attempts.·Consider·checking·the·network·status·or·increasing·the·retry·interval.`` with `⏎····`Request·with·GUID·${guid}·not·completed·after·${MAX_ATTEMPTS}·attempts.·Consider·checking·the·network·status·or·increasing·the·retry·interval.`⏎··`

Check warning on line 67 in packages/solidity-devops/js/utils/etherscan.js

View workflow job for this annotation

GitHub Actions / lint

Replace ``Request·with·GUID·${guid}·not·completed·after·${MAX_ATTEMPTS}·attempts.·Consider·checking·the·network·status·or·increasing·the·retry·interval.`` with `⏎····`Request·with·GUID·${guid}·not·completed·after·${MAX_ATTEMPTS}·attempts.·Consider·checking·the·network·status·or·increasing·the·retry·interval.`⏎··`
return null
}

Expand Down
7 changes: 4 additions & 3 deletions packages/solidity-devops/js/verifyProxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,17 @@ if (!deployment) {
const { address } = deployment
if (!address) {
logError(`Missing address in deployment file for ${contractAlias}`)
process.exit(0)
process.exit(1)
}

const guid = initiateVerifyProxy(chainName, address)
if (!guid) {
process.exit(0)
process.exit(1)
}
}
const response = getRequestStatus(chainName, 'checkproxyverification', guid)
if (!response) {
process.exit(0)
process.exit(1)
}
if (response.status === '0') {
logError(`Verification failed: ${response.result}`)
Expand Down

0 comments on commit 995381b

Please sign in to comment.