Commit fd0709b3 authored by Mark Tyneway's avatar Mark Tyneway

contracts-governance: better messaging

Include clear instructions for the upgrade transaction
that is not managed by this deploy script.
parent b9cdba28
......@@ -51,11 +51,26 @@ const deployFn: DeployFunction = async (hre: HardhatRuntimeEnvironment) => {
'0x4200000000000000000000000000000000000042'
)
const Old__MintManager = await hre.ethers.getContractAt(
'MintManager',
oldImpl
)
const oldOwner = await Old__MintManager.owner()
const getAddress = hre.ethers.utils.getAddress
const Deployment__MintManager = await hre.deployments.get('MintManager')
const newImpl = Deployment__MintManager.address
console.log()
console.log('Action is required to complete this deployment')
console.log(
'Ownership of the GovernanceToken should be migrated to the newly deployed MintManager'
)
console.log(`MintManager.owner() -> ${oldOwner}`)
console.log(`Call MintManager(${oldImpl}).upgrade(${newImpl})`)
console.log()
while (true) {
const owner = await GovernanceToken.owner()
if (getAddress(owner) === getAddress(oldImpl)) {
......
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