From f43fb93fa51288a7ed0cb2f6da5928b4e8d55e64 Mon Sep 17 00:00:00 2001 From: Juan Ignacio Ubeira Date: Mon, 4 Mar 2024 19:16:17 -0300 Subject: [PATCH] Fix benchmarks. --- pvt/benchmarks/misc.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/pvt/benchmarks/misc.ts b/pvt/benchmarks/misc.ts index 3f4a2efadf..e03bb3a62b 100644 --- a/pvt/benchmarks/misc.ts +++ b/pvt/benchmarks/misc.ts @@ -246,6 +246,11 @@ async function deployPoolFromFactory( if (poolName == 'ManagedPool') { receipt = await (await factory.connect(args.from).create(...args.parameters, ZERO_BYTES32)).wait(); event = receipt.events?.find((e) => e.event == 'PoolCreated'); + } else if (poolName == 'WeightedPool') { + receipt = await ( + await factory.connect(args.from).create(name, symbol, ...args.parameters, ZERO_ADDRESS, false, ZERO_BYTES32) + ).wait(); + event = receipt.events?.find((e) => e.event == 'PoolCreated'); } else { receipt = await ( await factory.connect(args.from).create(name, symbol, ...args.parameters, ZERO_ADDRESS, ZERO_BYTES32)