Skip to content

Commit

Permalink
improve(tests): silence unsafeAllowDelegatecall warning in tests (#820
Browse files Browse the repository at this point in the history
)

* improve(tests): silence `unsafeAllowDelegatecall` warning in tests

Signed-off-by: bennett <[email protected]>

---------

Signed-off-by: bennett <[email protected]>
  • Loading branch information
bmzig authored Jan 7, 2025
1 parent 1fbad5e commit c813704
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions test/evm/hardhat/fixtures/HubPool.Fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ export const hubPoolFixture = hre.deployments.createFixture(async ({ ethers }) =
return await deployHubPool(ethers);
});

// Silence warnings from openzeppelin/hardhat-upgrades for this fixture.
hre.upgrades.silenceWarnings();

export async function deployHubPool(ethers: any, spokePoolName = "MockSpokePool") {
const [signer, crossChainAdmin] = await ethers.getSigners();

Expand Down
3 changes: 3 additions & 0 deletions test/evm/hardhat/fixtures/SpokePool.Fixture.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ export const spokePoolFixture = hre.deployments.createFixture(async ({ ethers })
return await deploySpokePool(ethers);
});

// Silence warnings from openzeppelin/hardhat-upgrades for this fixture.
hre.upgrades.silenceWarnings();

// Have a separate function that deploys the contract and returns the contract addresses. This is called by the fixture
// to have standard fixture features. It is also exported as a function to enable non-snapshoted deployments.
export async function deploySpokePool(
Expand Down

0 comments on commit c813704

Please sign in to comment.