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
64ea3ac9
Unverified
Commit
64ea3ac9
authored
Nov 08, 2021
by
Maurelian
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
refactor(Contracts): extract chainID check to isHardHatNode function
parent
64d5712c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
2 deletions
+7
-2
clean-buttons-think.md
.changeset/clean-buttons-think.md
+5
-0
011-set-addresses.ts
packages/contracts/deploy/011-set-addresses.ts
+1
-1
016-fund-accounts.ts
packages/contracts/deploy/016-fund-accounts.ts
+1
-1
No files found.
.changeset/clean-buttons-think.md
0 → 100644
View file @
64ea3ac9
---
'
@eth-optimism/contracts'
:
patch
---
Run etherscan verification after each contract is deployed.
packages/contracts/deploy/011-set-addresses.ts
View file @
64ea3ac9
...
@@ -76,7 +76,7 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -76,7 +76,7 @@ const deployFn: DeployFunction = async (hre) => {
// Check if if we're on the hardhat chain ID. This will only happen in CI. If this is the case, we
// Check if if we're on the hardhat chain ID. This will only happen in CI. If this is the case, we
// can skip directly to transferring ownership over to the ChugSplashDictator contract.
// can skip directly to transferring ownership over to the ChugSplashDictator contract.
if
(
isHardhatNode
(
hre
))
{
if
(
await
isHardhatNode
(
hre
))
{
const
owner
=
await
hre
.
ethers
.
getSigner
(
currentOwner
)
const
owner
=
await
hre
.
ethers
.
getSigner
(
currentOwner
)
await
Lib_AddressManager
.
connect
(
owner
).
transferOwnership
(
await
Lib_AddressManager
.
connect
(
owner
).
transferOwnership
(
AddressDictator
.
address
AddressDictator
.
address
...
...
packages/contracts/deploy/016-fund-accounts.ts
View file @
64ea3ac9
...
@@ -15,7 +15,7 @@ import {
...
@@ -15,7 +15,7 @@ import {
// details of how to make that work cleanly. This is fine in the meantime.
// details of how to make that work cleanly. This is fine in the meantime.
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
const
deployFn
:
DeployFunction
=
async
(
hre
)
=>
{
// Only execute this step if we're on the hardhat chain ID.
// Only execute this step if we're on the hardhat chain ID.
if
(
isHardhatNode
(
hre
))
{
if
(
await
isHardhatNode
(
hre
))
{
const
L1StandardBridge
=
await
getContractFromArtifact
(
const
L1StandardBridge
=
await
getContractFromArtifact
(
hre
,
hre
,
'
Proxy__OVM_L1StandardBridge
'
,
'
Proxy__OVM_L1StandardBridge
'
,
...
...
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