From bcf5d74da303b21b288aeb6f5ebd04f456ea6726 Mon Sep 17 00:00:00 2001 From: moody salem Date: Wed, 15 Apr 2020 08:53:20 -0400 Subject: [PATCH] Add back overrides to see if it fixes CI --- test/shared/fixtures.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/test/shared/fixtures.ts b/test/shared/fixtures.ts index b24441b..8cca572 100644 --- a/test/shared/fixtures.ts +++ b/test/shared/fixtures.ts @@ -12,8 +12,12 @@ interface FactoryFixture { factory: Contract } +const overrides = { + gasLimit: 9999999 +} + export async function factoryFixture(_: Web3Provider, [wallet]: Wallet[]): Promise { - const factory = await deployContract(wallet, UniswapV2Factory, [wallet.address]) + const factory = await deployContract(wallet, UniswapV2Factory, [wallet.address], overrides) return { factory } } @@ -26,10 +30,10 @@ interface PairFixture extends FactoryFixture { export async function pairFixture(provider: Web3Provider, [wallet]: Wallet[]): Promise { const { factory } = await factoryFixture(provider, [wallet]) - const tokenA = await deployContract(wallet, ERC20, [expandTo18Decimals(10000)]) - const tokenB = await deployContract(wallet, ERC20, [expandTo18Decimals(10000)]) + const tokenA = await deployContract(wallet, ERC20, [expandTo18Decimals(10000)], overrides) + const tokenB = await deployContract(wallet, ERC20, [expandTo18Decimals(10000)], overrides) - await factory.createPair(tokenA.address, tokenB.address) + await factory.createPair(tokenA.address, tokenB.address, overrides) const pairAddress = await factory.getPair(tokenA.address, tokenB.address) const pair = new Contract(pairAddress, JSON.stringify(UniswapV2Pair.abi), provider).connect(wallet)