diff --git a/test/PostageStamp.test.ts b/test/PostageStamp.test.ts index 5faa4a78..36b9026b 100644 --- a/test/PostageStamp.test.ts +++ b/test/PostageStamp.test.ts @@ -82,7 +82,7 @@ describe('PostageStamp', function () { it('should assign the pauser role', async function () { const postageStamp = await ethers.getContract('PostageStamp'); - const pauserRole = await postageStamp.PAUSER_ROLE(); + const pauserRole = await postageStamp.DEFAULT_ADMIN_ROLE(); expect(await postageStamp.hasRole(pauserRole, deployer)).to.be.true; }); }); diff --git a/test/Redistribution.test.ts b/test/Redistribution.test.ts index 1a1fd2ac..b3340886 100644 --- a/test/Redistribution.test.ts +++ b/test/Redistribution.test.ts @@ -266,7 +266,7 @@ describe('Redistribution', function () { redistribution = await ethers.getContract('Redistribution'); token = await ethers.getContract('TestToken', deployer); - const pauserRole = await read('StakeRegistry', 'PAUSER_ROLE'); + const pauserRole = await read('StakeRegistry', 'DEFAULT_ADMIN_ROLE'); await execute('StakeRegistry', { from: deployer }, 'grantRole', pauserRole, pauser); //initialise, set minimum price, todo: move to deployment diff --git a/test/Staking.test.ts b/test/Staking.test.ts index 9a9cd3e6..1b38edba 100644 --- a/test/Staking.test.ts +++ b/test/Staking.test.ts @@ -79,7 +79,7 @@ describe('Staking', function () { await deployments.fixture(); stakeRegistry = await ethers.getContract('StakeRegistry'); - const pauserRole = await read('StakeRegistry', 'PAUSER_ROLE'); + const pauserRole = await read('StakeRegistry', 'DEFAULT_ADMIN_ROLE'); await execute('StakeRegistry', { from: deployer }, 'grantRole', pauserRole, pauser); }); @@ -88,7 +88,7 @@ describe('Staking', function () { }); it('should set the pauser role', async function () { - const pauserRole = await stakeRegistry.PAUSER_ROLE(); + const pauserRole = await stakeRegistry.DEFAULT_ADMIN_ROLE(); expect(await stakeRegistry.hasRole(pauserRole, pauser)).to.be.true; }); @@ -285,7 +285,7 @@ describe('Staking', function () { await sr_staker_0.depositStake(nonce_0, stakeAmount_0); const stakeRegistryDeployer = await ethers.getContract('StakeRegistry', deployer); - const pauserRole = await stakeRegistryDeployer.PAUSER_ROLE(); + const pauserRole = await stakeRegistryDeployer.DEFAULT_ADMIN_ROLE(); await stakeRegistryDeployer.grantRole(pauserRole, pauser); }); @@ -353,7 +353,7 @@ describe('Staking', function () { updatedBlockNumber = await getBlockNumber(); const stakeRegistryDeployer = await ethers.getContract('StakeRegistry', deployer); - const pauserRole = await stakeRegistryDeployer.PAUSER_ROLE(); + const pauserRole = await stakeRegistryDeployer.DEFAULT_ADMIN_ROLE(); await stakeRegistryDeployer.grantRole(pauserRole, pauser); }); diff --git a/test/Stats.test.ts b/test/Stats.test.ts index 538204a5..e657e21b 100644 --- a/test/Stats.test.ts +++ b/test/Stats.test.ts @@ -139,7 +139,7 @@ describe('Stats', async function () { const priceOracleRole = await read('PostageStamp', 'PRICE_ORACLE_ROLE'); await execute('PostageStamp', { from: deployer }, 'grantRole', priceOracleRole, oracle); - const pauserRole = await read('StakeRegistry', 'PAUSER_ROLE'); + const pauserRole = await read('StakeRegistry', 'DEFAULT_ADMIN_ROLE'); await execute('StakeRegistry', { from: deployer }, 'grantRole', pauserRole, pauser); const priceOracle = await ethers.getContract('PriceOracle', deployer);