Skip to content

Commit

Permalink
remove unused variable warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick95550 committed Jun 14, 2024
1 parent 026a577 commit 3b38c2e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 8 deletions.
13 changes: 8 additions & 5 deletions test/staking/seekerStakingManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,22 +48,25 @@ describe('Seeker Staking Manager', () => {

it('cannot initialize seeker staking manager with invalid arguemnts', async () => {
const factory = await ethers.getContractFactory('SeekerStakingManager');
const seekerStakingManager = await factory.deploy();
const seekerStakingManagerTemp = await factory.deploy();

await expect(
seekerStakingManager.initialize(ethers.ZeroAddress, ethers.ZeroAddress),
seekerStakingManagerTemp.initialize(
ethers.ZeroAddress,
ethers.ZeroAddress,
),
).to.be.revertedWithCustomError(
seekerStakingManager,
seekerStakingManagerTemp,
'RootSeekersCannotBeZeroAddress',
);

await expect(
seekerStakingManager.initialize(
seekerStakingManagerTemp.initialize(
await testSeekers.getAddress(),
ethers.ZeroAddress,
),
).to.be.revertedWithCustomError(
seekerStakingManager,
seekerStakingManagerTemp,
'SeekerStatsOracleCannotBeZeroAddress',
);
});
Expand Down
6 changes: 3 additions & 3 deletions test/staking/syloStakingManager.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@ describe('Sylo Staking', () => {

it('cannot initialize sylo staking manager with invalid arguemnts', async () => {
const factory = await ethers.getContractFactory('SyloStakingManager');
const syloStakingManager = await factory.deploy();
const syloStakingManagerTemp = await factory.deploy();

await expect(
syloStakingManager.initialize(ethers.ZeroAddress, 100n),
syloStakingManagerTemp.initialize(ethers.ZeroAddress, 100n),
).to.be.revertedWithCustomError(
syloStakingManager,
syloStakingManagerTemp,
'SyloAddressCannotBeNil',
);
});
Expand Down

0 comments on commit 3b38c2e

Please sign in to comment.