From 9ceb9c774087a592b55d01c346f2d462c3335d7b Mon Sep 17 00:00:00 2001 From: "Mark.B" Date: Wed, 11 Sep 2024 22:01:08 +0200 Subject: [PATCH] cleanup --- deploy/main/005_deploy_roles_postage.ts | 2 +- deploy/main/007_deploy_roles_staking.ts | 3 --- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/deploy/main/005_deploy_roles_postage.ts b/deploy/main/005_deploy_roles_postage.ts index b4a30910..a5c370d3 100644 --- a/deploy/main/005_deploy_roles_postage.ts +++ b/deploy/main/005_deploy_roles_postage.ts @@ -5,7 +5,7 @@ const func: DeployFunction = async function ({ deployments, getNamedAccounts }) const { deployer } = await getNamedAccounts(); log('Setting PostageStamps roles'); - const adminRole = await read('StakeRegistry', 'DEFAULT_ADMIN_ROLE'); + const adminRole = await read('PostageStamp', 'DEFAULT_ADMIN_ROLE'); if (await read('PostageStamp', { from: deployer }, 'hasRole', adminRole)) { const priceOracleRole = await read('PostageStamp', 'PRICE_ORACLE_ROLE'); diff --git a/deploy/main/007_deploy_roles_staking.ts b/deploy/main/007_deploy_roles_staking.ts index 20e8eaaa..c03a2f66 100644 --- a/deploy/main/007_deploy_roles_staking.ts +++ b/deploy/main/007_deploy_roles_staking.ts @@ -5,9 +5,6 @@ const func: DeployFunction = async function ({ deployments, getNamedAccounts }) const { deployer } = await getNamedAccounts(); log('Setting Staking roles'); - // As currently we are reusing staking, and there is multisig wallet as ADMIN - // we either need to add deployer temporarly as ADMIN or do this manually over multisig - const adminRole = await read('StakeRegistry', 'DEFAULT_ADMIN_ROLE'); if (await read('StakeRegistry', { from: deployer }, 'hasRole', adminRole)) {