Commit 2a169799 authored by kf's avatar kf Committed by Kelvin Fichter

fix: improve message for address dictator

parent 483ed20a
...@@ -54,22 +54,40 @@ const deployFn: DeployFunction = async (hre) => { ...@@ -54,22 +54,40 @@ const deployFn: DeployFunction = async (hre) => {
console.log(` console.log(`
The AddressDictator contract (glory to Arstotzka) has been deployed. The AddressDictator contract (glory to Arstotzka) has been deployed.
Name/Address pairs: FOLLOW THESE INSTRUCTIONS CAREFULLY!
${namedAddresses.map((namedAddress) => {
(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) const padding = ' '.repeat(40 - namedAddress.name.length)
return ` return `
${namedAddress.name}${padding} ${namedAddress.addr} ${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})
Current AddressManager owner: ${currentOwner} [${
Final AddressManager owner: ${finalOwner} currentOwner === finalOwner
? 'THESE ARE THE SAME ADDRESSES'
: 'THESE ARE >>>NOT<<< THE SAME ADDRESSES'
}]
Please verify the values above, and the deployment steps up to this point, (3) Transfer ownership of the AddressManager located at (${
then transfer ownership of the AddressManager at ${
Lib_AddressManager.address Lib_AddressManager.address
} })
to the AddressDictator contract at ${AddressDictator.address}. to the AddressDictator contract located at the following address:
TRANSFER OWNERSHIP TO THE FOLLOWING ADDRESS ONLY:
>>>>> (${AddressDictator.address}) <<<<<
(4) Wait for the deploy process to continue.
`) `)
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment