From 5509e442d5a29e239c815fa2b37550503f72a396 Mon Sep 17 00:00:00 2001 From: pol <> Date: Mon, 19 Oct 2020 13:55:40 +0200 Subject: [PATCH] removed redeployment of protocol for the flow --- tasks/scenarios/basic_flow.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tasks/scenarios/basic_flow.ts b/tasks/scenarios/basic_flow.ts index 40bc02f5..4697abfd 100644 --- a/tasks/scenarios/basic_flow.ts +++ b/tasks/scenarios/basic_flow.ts @@ -24,8 +24,11 @@ task('aave:basicFlow', 'Execute protocol basic flow').setAction(async ({verify}, console.log('Basic Flow started\n'); // deploy protocol - await localBRE.run('aave:dev'); + // await localBRE.run('aave:dev'); const tokens: MockTokenMap = await getMockedTokens(AaveConfig); + if (!tokens || Object.keys(tokens).length === 0) { + throw new Error('Deploy contracts first'); + } // mint reserve tokens to user0 const DAI = tokens.DAI;