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
59732e5f
Unverified
Commit
59732e5f
authored
Feb 18, 2022
by
Elena Gesheva
Committed by
GitHub
Feb 18, 2022
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #1986 from rajivpo/rajiv/add-sourcify-to-regenesis-deploy
feat: verify contracts on sourcify during deploy
parents
ffbf649c
78298782
Changes
2
Show 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 @
59732e5f
---
'
@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 @
59732e5f
...
@@ -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
)
}
}
}
}
...
...
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