Skip to content

Commit c813704

Browse files
authored
improve(tests): silence unsafeAllowDelegatecall warning in tests (#820)
* improve(tests): silence `unsafeAllowDelegatecall` warning in tests Signed-off-by: bennett <[email protected]> --------- Signed-off-by: bennett <[email protected]>
1 parent 1fbad5e commit c813704

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

test/evm/hardhat/fixtures/HubPool.Fixture.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ export const hubPoolFixture = hre.deployments.createFixture(async ({ ethers }) =
88
return await deployHubPool(ethers);
99
});
1010

11+
// Silence warnings from openzeppelin/hardhat-upgrades for this fixture.
12+
hre.upgrades.silenceWarnings();
13+
1114
export async function deployHubPool(ethers: any, spokePoolName = "MockSpokePool") {
1215
const [signer, crossChainAdmin] = await ethers.getSigners();
1316

test/evm/hardhat/fixtures/SpokePool.Fixture.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ export const spokePoolFixture = hre.deployments.createFixture(async ({ ethers })
1616
return await deploySpokePool(ethers);
1717
});
1818

19+
// Silence warnings from openzeppelin/hardhat-upgrades for this fixture.
20+
hre.upgrades.silenceWarnings();
21+
1922
// Have a separate function that deploys the contract and returns the contract addresses. This is called by the fixture
2023
// to have standard fixture features. It is also exported as a function to enable non-snapshoted deployments.
2124
export async function deploySpokePool(

0 commit comments

Comments
 (0)