Fix tests missing param

This commit is contained in:
David Racero 2020-09-03 16:24:27 +02:00
parent 84d1ed0cb7
commit e2bc6fbc73
2 changed files with 3 additions and 2 deletions

View File

@ -35,6 +35,7 @@ import {
import {waitForTx} from '../helpers/misc-utils'; import {waitForTx} from '../helpers/misc-utils';
import {enableReservesToBorrow, enableReservesAsCollateral} from '../helpers/init-helpers'; import {enableReservesToBorrow, enableReservesAsCollateral} from '../helpers/init-helpers';
import {AaveConfig} from '../config/aave'; import {AaveConfig} from '../config/aave';
import {MockFlashLoanReceiverFactory} from '../types';
const MOCK_USD_PRICE_IN_WEI = AaveConfig.ProtocolGlobalParams.MockUsdPriceInWei; const MOCK_USD_PRICE_IN_WEI = AaveConfig.ProtocolGlobalParams.MockUsdPriceInWei;
const ALL_ASSETS_INITIAL_PRICES = AaveConfig.Mocks.AllAssetsInitialPrices; const ALL_ASSETS_INITIAL_PRICES = AaveConfig.Mocks.AllAssetsInitialPrices;
@ -206,7 +207,8 @@ const buildTestEnv = async (deployer: Signer, secondaryWallet: Signer) => {
addressesProvider, addressesProvider,
lendingPoolProxy, lendingPoolProxy,
lendingPoolConfiguratorProxy, lendingPoolConfiguratorProxy,
AavePools.proto AavePools.proto,
false
); );
await enableReservesToBorrow( await enableReservesToBorrow(
reservesParams, reservesParams,

View File

@ -94,7 +94,6 @@ export async function initializeMakeSuite() {
testEnv.helpersContract = await getAaveProtocolTestHelpers(); testEnv.helpersContract = await getAaveProtocolTestHelpers();
console.log(await testEnv.helpersContract.getAllATokens());
const aDaiAddress = (await testEnv.helpersContract.getAllATokens()).find( const aDaiAddress = (await testEnv.helpersContract.getAllATokens()).find(
(aToken) => aToken.symbol === 'aDAI' (aToken) => aToken.symbol === 'aDAI'
)?.tokenAddress; )?.tokenAddress;