Commit 78298782 authored by rajivpoc's avatar rajivpoc Committed by Elena Gesheva

feat: verify contracts on sourcify during deploy

parent ffbf649c
---
'@eth-optimism/contracts': patch
---
Contracts are additionally verified on sourcify during deploy. This should reduce manual labor during future regeneses.
...@@ -53,9 +53,18 @@ export const deployAndVerifyAndThen = async ({ ...@@ -53,9 +53,18 @@ export const deployAndVerifyAndThen = async ({
address: result.address, address: result.address,
constructorArguments: args, constructorArguments: args,
}) })
console.log('Successfully verified') console.log('Successfully verified on Etherscan')
} catch (error) { } catch (error) {
console.log('Error when verifying bytecode on etherscan:') console.log('Error when verifying bytecode on Etherscan:')
console.log(error)
}
try {
console.log('Verifying on Sourcify...')
await hre.run('sourcify')
console.log('Successfully verified on Sourcify')
} catch (error) {
console.log('Error when verifying bytecode on Sourcify:')
console.log(error) console.log(error)
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment