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
8ed16264
Commit
8ed16264
authored
Feb 03, 2022
by
Matthew Slipper
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
packages/contracts: Add flag to automatically set ownership
parent
67a0414d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
2 deletions
+8
-2
011-set-addresses.ts
packages/contracts/deploy/011-set-addresses.ts
+4
-1
014-OVM_L1StandardBridge.deploy.ts
packages/contracts/deploy/014-OVM_L1StandardBridge.deploy.ts
+4
-1
No files found.
packages/contracts/deploy/011-set-addresses.ts
View file @
8ed16264
...
@@ -74,7 +74,10 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -74,7 +74,10 @@ 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
(
await
isHardhatNode
(
hre
))
{
if
(
(
await
isHardhatNode
(
hre
))
||
process
.
env
.
AUTOMATICALLY_TRANSFER_OWNERSHIP
===
'
true
'
)
{
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/014-OVM_L1StandardBridge.deploy.ts
View file @
8ed16264
...
@@ -86,7 +86,10 @@ const deployFn: DeployFunction = async (hre) => {
...
@@ -86,7 +86,10 @@ 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
(
await
isHardhatNode
(
hre
))
{
if
(
(
await
isHardhatNode
(
hre
))
||
process
.
env
.
AUTOMATICALLY_TRANSFER_OWNERSHIP
===
'
true
'
)
{
const
owner
=
await
hre
.
ethers
.
getSigner
(
currentOwner
)
const
owner
=
await
hre
.
ethers
.
getSigner
(
currentOwner
)
await
Proxy__OVM_L1StandardBridge
.
connect
(
owner
).
setOwner
(
await
Proxy__OVM_L1StandardBridge
.
connect
(
owner
).
setOwner
(
ChugSplashDictator
.
address
ChugSplashDictator
.
address
...
...
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