From 1a7933762fc7280f9d4653021a632292136de251 Mon Sep 17 00:00:00 2001 From: andyk Date: Tue, 15 Sep 2020 17:13:29 +0300 Subject: [PATCH] fix Upgradeability tests setup --- test/upgradeability.spec.ts | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/test/upgradeability.spec.ts b/test/upgradeability.spec.ts index b2f50179..6139f3a4 100644 --- a/test/upgradeability.spec.ts +++ b/test/upgradeability.spec.ts @@ -10,6 +10,7 @@ import { import {MockAToken} from '../types/MockAToken'; import {MockStableDebtToken} from '../types/MockStableDebtToken'; import {MockVariableDebtToken} from '../types/MockVariableDebtToken'; +import {ZERO_ADDRESS} from '../helpers/constants'; makeSuite('Upgradeability', (testEnv: TestEnv) => { const {CALLER_NOT_LENDING_POOL_MANAGER} = ProtocolErrors; @@ -24,16 +25,29 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => { dai.address, 'Aave Interest bearing DAI updated', 'aDAI', + ZERO_ADDRESS, ]); const stableDebtTokenInstance = await deployContract( eContractid.MockStableDebtToken, - [pool.address, dai.address, 'Aave stable debt bearing DAI updated', 'stableDebtDAI'] + [ + pool.address, + dai.address, + 'Aave stable debt bearing DAI updated', + 'stableDebtDAI', + ZERO_ADDRESS, + ] ); const variableDebtTokenInstance = await deployContract( eContractid.MockVariableDebtToken, - [pool.address, dai.address, 'Aave variable debt bearing DAI updated', 'variableDebtDAI'] + [ + pool.address, + dai.address, + 'Aave variable debt bearing DAI updated', + 'variableDebtDAI', + ZERO_ADDRESS, + ] ); newATokenAddress = aTokenInstance.address;