load dotenv in beginning

This commit is contained in:
De Facto 2021-02-15 16:53:29 +08:00
parent 995b05fafb
commit fcdc87ef19
1 changed files with 4 additions and 2 deletions

View File

@ -1,3 +1,6 @@
import dotenv from "dotenv"
dotenv.config()
import { Command, option } from "commander"
import fs from "fs"
@ -8,7 +11,6 @@ import {
solana, Deployer, SPLToken, ProgramAccount
} from "solray"
import dotenv from "dotenv"
import FluxAggregator, { AggregatorLayout, OracleLayout } from "./FluxAggregator"
@ -21,7 +23,7 @@ import {
import * as feed from "./feed"
dotenv.config()
const cli = new Command()