From c8137049d1bc2c550aa02c904882f0deb8eb2d8b Mon Sep 17 00:00:00 2001 From: bmzig <57361391+bmzig@users.noreply.github.com> Date: Tue, 7 Jan 2025 11:25:17 -0600 Subject: [PATCH] improve(tests): silence `unsafeAllowDelegatecall` warning in tests (#820) * improve(tests): silence `unsafeAllowDelegatecall` warning in tests Signed-off-by: bennett --------- Signed-off-by: bennett --- test/evm/hardhat/fixtures/HubPool.Fixture.ts | 3 +++ test/evm/hardhat/fixtures/SpokePool.Fixture.ts | 3 +++ 2 files changed, 6 insertions(+) diff --git a/test/evm/hardhat/fixtures/HubPool.Fixture.ts b/test/evm/hardhat/fixtures/HubPool.Fixture.ts index 6c4021354..9fee69b90 100644 --- a/test/evm/hardhat/fixtures/HubPool.Fixture.ts +++ b/test/evm/hardhat/fixtures/HubPool.Fixture.ts @@ -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(); diff --git a/test/evm/hardhat/fixtures/SpokePool.Fixture.ts b/test/evm/hardhat/fixtures/SpokePool.Fixture.ts index 277575861..8ea3cb0ec 100644 --- a/test/evm/hardhat/fixtures/SpokePool.Fixture.ts +++ b/test/evm/hardhat/fixtures/SpokePool.Fixture.ts @@ -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(