File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -5,15 +5,11 @@ import { AaveProtocolDataProviderFactory } from "./contracts/AaveProtocolDataPro
55const KEY = process . env . ALCHEMY_KEY ;
66const POLYGON_ALCHEMY_KEY = process . env . POLYGON_ALCHEMY_KEY ;
77const 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
1915const NETWORKS_CONFIG = {
You can’t perform that action at this time.
0 commit comments