Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
0xCardinalError committed Sep 11, 2024
1 parent 9e35317 commit 9ceb9c7
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
2 changes: 1 addition & 1 deletion deploy/main/005_deploy_roles_postage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
3 changes: 0 additions & 3 deletions deploy/main/007_deploy_roles_staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 9ceb9c7

Please sign in to comment.