Skip to content

Commit

Permalink
Merge pull request sphinx-labs#1597 from sphinx-labs/pate/remove-isve…
Browse files Browse the repository at this point in the history
…rified-use

fix(core): Remove use of isVerified during contract verification
  • Loading branch information
RPate97 authored Mar 27, 2024
2 parents 76bd995 + 96653d9 commit a47d542
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/eighty-tigers-teach.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@sphinx-labs/core': patch
---

Do not use isVerified at all
3 changes: 1 addition & 2 deletions packages/core/src/etherscan.ts
Original file line number Diff line number Diff line change
Expand Up @@ -237,8 +237,7 @@ export const attemptVerification = async (
)
guid = response.message
} catch (err) {
const verified = await etherscan.isVerified(address)
if (verified) {
if ((err.message as string).toLowerCase().includes('already verified')) {
console.log(
`The contract ${address} has already been verified on Etherscan:\n${contractURL}`
)
Expand Down

0 comments on commit a47d542

Please sign in to comment.