We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a289743 commit 239e7e8Copy full SHA for 239e7e8
contracts/scripts/simulations/utils.ts
@@ -25,13 +25,7 @@ export const getContracts = async (hre) => {
25
const pnk = (await hre.ethers.getContract("PNK")) as PNK;
26
const randomizerRng = (await hre.ethers.getContract("RandomizerRNG")) as RandomizerRNG;
27
const arbitrable = (await hre.ethers.getContract("ArbitrableExampleEthFee")) as ArbitrableExampleEthFee;
28
- let randomizerMock: RandomizerMock | undefined;
29
-
30
- try {
31
- randomizerMock = (await hre.ethers.getContract("RandomizerMock")) as RandomizerMock;
32
- } catch (error) {
33
- console.log("RandomizerMock contract not found");
34
- }
+ const randomizerMock = (await hre.ethers.getContract("RandomizerMock").catch(() => undefined)) as RandomizerMock;
35
36
return {
37
core,
0 commit comments