diff --git a/deployment/3_deployContracts.js b/deployment/3_deployContracts.js index 4b04425da..0cbd9bb8d 100644 --- a/deployment/3_deployContracts.js +++ b/deployment/3_deployContracts.js @@ -499,7 +499,8 @@ async function main() { ); // Transfer ownership of the proxyAdmin to timelock - await upgrades.admin.transferProxyAdminOwnership(timelockContract.address); + const proxyAdminContract = proxyAdminFactory.attach(proxyAdminAddress); + await (await proxyAdminContract.transferOwnership(timelockContract.address)).wait(); } console.log('\n#######################');