From ce6a07be629683c0c9cfaef851adf9abd9c1e09e Mon Sep 17 00:00:00 2001 From: Hadrien Charlanes Date: Thu, 10 Jun 2021 19:06:02 +0200 Subject: [PATCH] fix: fixed test --- test-suites/test-aave/flashloan.spec.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test-suites/test-aave/flashloan.spec.ts b/test-suites/test-aave/flashloan.spec.ts index d45d0d87..91e162a5 100644 --- a/test-suites/test-aave/flashloan.spec.ts +++ b/test-suites/test-aave/flashloan.spec.ts @@ -50,7 +50,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => { }); it('Takes WETH flash loan with mode = 0, returns the funds correctly', async () => { - const { pool, helpersContract, weth } = testEnv; + const { pool, helpersContract, weth, aWETH } = testEnv; const flashBorrowedAmount = ethers.utils.parseEther('0.8'); const fees = new BigNumber(flashBorrowedAmount.mul(9).div(10000).toString()); @@ -117,7 +117,7 @@ makeSuite('LendingPool FlashLoan function', (testEnv: TestEnv) => { '0' ); - await pool.mintToTreasury([weth.address]); + await pool.mintToTreasury([aave.address]); ethers.utils.parseUnits('10000');