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
2a169799
Unverified
Commit
2a169799
authored
Oct 26, 2021
by
kf
Committed by
Kelvin Fichter
Nov 10, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: improve message for address dictator
parent
483ed20a
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
30 additions
and
12 deletions
+30
-12
011-set-addresses.ts
packages/contracts/deploy/011-set-addresses.ts
+30
-12
No files found.
packages/contracts/deploy/011-set-addresses.ts
View file @
2a169799
...
...
@@ -54,22 +54,40 @@ const deployFn: DeployFunction = async (hre) => {
console
.
log
(
`
The AddressDictator contract (glory to Arstotzka) has been deployed.
Name/Address pairs:
${
namedAddresses
.
map
((
namedAddress
)
=>
{
const
padding
=
'
'
.
repeat
(
40
-
namedAddress
.
name
.
length
)
return
`
FOLLOW THESE INSTRUCTIONS CAREFULLY!
(1) Review the Contract Name / Contract Address pairs below and confirm that they match
the addresses found in the contract artifacts of your current deployment.
${
namedAddresses
.
map
((
namedAddress
)
=>
{
const
padding
=
'
'
.
repeat
(
40
-
namedAddress
.
name
.
length
)
return
`
${
namedAddress
.
name
}${
padding
}
${
namedAddress
.
addr
}
`
})}
})
.
join
(
'
\n
'
)}
(2) Review the CURRENT and FINAL AddressManager owners and verify that these are the expected values:
Current AddressManager owner: (
${
currentOwner
}
)
Final AddressManager owner: (
${
finalOwner
}
)
[
${
currentOwner
===
finalOwner
?
'
THESE ARE THE SAME ADDRESSES
'
:
'
THESE ARE >>>NOT<<< THE SAME ADDRESSES
'
}
]
(3) Transfer ownership of the AddressManager located at (
${
Lib_AddressManager
.
address
}
)
to the AddressDictator contract located at the following address:
Current AddressManager owner:
${
currentOwner
}
Final AddressManager owner:
${
finalOwner
}
TRANSFER OWNERSHIP TO THE FOLLOWING ADDRESS ONLY:
>>>>> (
${
AddressDictator
.
address
}
) <<<<<
Please verify the values above, and the deployment steps up to this point,
then transfer ownership of the AddressManager at
${
Lib_AddressManager
.
address
}
to the AddressDictator contract at
${
AddressDictator
.
address
}
.
(4) Wait for the deploy process to continue.
`
)
}
...
...
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