mirror of
https://github.com/Instadapp/aave-protocol-v2.git
synced 2024-07-29 21:47:30 +00:00
fix Upgradeability tests setup
This commit is contained in:
parent
84cf68e58e
commit
1a7933762f
|
@ -10,6 +10,7 @@ import {
|
||||||
import {MockAToken} from '../types/MockAToken';
|
import {MockAToken} from '../types/MockAToken';
|
||||||
import {MockStableDebtToken} from '../types/MockStableDebtToken';
|
import {MockStableDebtToken} from '../types/MockStableDebtToken';
|
||||||
import {MockVariableDebtToken} from '../types/MockVariableDebtToken';
|
import {MockVariableDebtToken} from '../types/MockVariableDebtToken';
|
||||||
|
import {ZERO_ADDRESS} from '../helpers/constants';
|
||||||
|
|
||||||
makeSuite('Upgradeability', (testEnv: TestEnv) => {
|
makeSuite('Upgradeability', (testEnv: TestEnv) => {
|
||||||
const {CALLER_NOT_LENDING_POOL_MANAGER} = ProtocolErrors;
|
const {CALLER_NOT_LENDING_POOL_MANAGER} = ProtocolErrors;
|
||||||
|
@ -24,16 +25,29 @@ makeSuite('Upgradeability', (testEnv: TestEnv) => {
|
||||||
dai.address,
|
dai.address,
|
||||||
'Aave Interest bearing DAI updated',
|
'Aave Interest bearing DAI updated',
|
||||||
'aDAI',
|
'aDAI',
|
||||||
|
ZERO_ADDRESS,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const stableDebtTokenInstance = await deployContract<MockStableDebtToken>(
|
const stableDebtTokenInstance = await deployContract<MockStableDebtToken>(
|
||||||
eContractid.MockStableDebtToken,
|
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<MockVariableDebtToken>(
|
const variableDebtTokenInstance = await deployContract<MockVariableDebtToken>(
|
||||||
eContractid.MockVariableDebtToken,
|
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;
|
newATokenAddress = aTokenInstance.address;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user