Skip to content

Commit

Permalink
Remove utils from one of the scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikolaj Gasior committed Jul 29, 2024
1 parent d08d59e commit fa17f77
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions azero/scripts/get_latest_block.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import fs from "fs";

import { ApiPromise, WsProvider, Keyring } from "@polkadot/api";
import { import_env } from "./utils";
import { ApiPromise, WsProvider } from "@polkadot/api";
import "dotenv/config";
import "@polkadot/api-augment";

Expand All @@ -12,7 +11,7 @@ async function main(): Promise<void> {
throw new Error("Please provide an env file");
}

const config = await import_env(envFile);
const config = await import(`../env/${envFile}.json`)
const { ws_node } = config;
const wsProvider = new WsProvider(ws_node);
const api = await ApiPromise.create({ provider: wsProvider });
Expand Down

0 comments on commit fa17f77

Please sign in to comment.