Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
78298782
Commit
78298782
authored
Jan 05, 2022
by
rajivpoc
Committed by
Elena Gesheva
Feb 18, 2022
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: verify contracts on sourcify during deploy
parent
ffbf649c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
2 deletions
+16
-2
spicy-camels-fly.md
.changeset/spicy-camels-fly.md
+5
-0
deploy-utils.ts
packages/contracts/src/deploy-utils.ts
+11
-2
No files found.
.changeset/spicy-camels-fly.md
0 → 100644
View file @
78298782
---
'
@eth-optimism/contracts'
:
patch
---
Contracts are additionally verified on sourcify during deploy. This should reduce manual labor during future regeneses.
packages/contracts/src/deploy-utils.ts
View file @
78298782
...
...
@@ -53,9 +53,18 @@ export const deployAndVerifyAndThen = async ({
address
:
result
.
address
,
constructorArguments
:
args
,
})
console
.
log
(
'
Successfully verified
'
)
console
.
log
(
'
Successfully verified
on Etherscan
'
)
}
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
)
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment