Skip to content

Commit e23e698

Browse files
committed
feat: added specific logs
1 parent bb9eb36 commit e23e698

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/index.ts

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,11 @@ import { AaveProtocolDataProviderFactory } from "./contracts/AaveProtocolDataPro
55
const KEY = process.env.ALCHEMY_KEY;
66
const POLYGON_ALCHEMY_KEY = process.env.POLYGON_ALCHEMY_KEY;
77
const MUMBAI_ALCHEMY_KEY = process.env.MUMBAI_ALCHEMY_KEY;
8-
if (
9-
KEY === "" ||
10-
MUMBAI_ALCHEMY_KEY === "" ||
11-
POLYGON_ALCHEMY_KEY === "" ||
12-
!KEY ||
13-
!MUMBAI_ALCHEMY_KEY ||
14-
!POLYGON_ALCHEMY_KEY
15-
)
16-
throw new Error("ENV ALCHEMY KEY not configured");
8+
if (KEY === "" || !KEY) throw new Error("ENV ALCHEMY KEY not configured");
9+
if (POLYGON_ALCHEMY_KEY === "" || !POLYGON_ALCHEMY_KEY)
10+
throw new Error("POLYGON_ALCHEMY_KEY ALCHEMY KEY not configured");
11+
if (MUMBAI_ALCHEMY_KEY === "" || !MUMBAI_ALCHEMY_KEY)
12+
throw new Error("MUMBAI_ALCHEMY_KEY ALCHEMY KEY not configured");
1713
// Get the main addreses from the DOC's https://docs.aave.com/developers/getting-started/deployed-contracts
1814

1915
const NETWORKS_CONFIG = {

0 commit comments

Comments
 (0)