Do not auto-import @cosmjs/encoding symbols

This commit is contained in:
Simon Warta
2021-02-11 15:14:36 +01:00
parent 8e8011b695
commit fbae7e2729
3 changed files with 13 additions and 4 deletions
+11 -4
View File
@@ -55,10 +55,6 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
"Slip10RawIndex",
],
],
[
"@cosmjs/encoding",
["fromAscii", "fromBase64", "fromHex", "fromUtf8", "toAscii", "toBase64", "toHex", "toUtf8", "Bech32"],
],
]);
console.info(colors.green("Initializing session for you. Have fun!"));
@@ -78,6 +74,17 @@ export async function main(originalArgs: readonly string[]): Promise<void> {
import axios from "axios";
import * as fs from "fs";
import {
fromAscii,
fromBase64,
fromHex,
fromUtf8,
toAscii,
toBase64,
toHex,
toUtf8,
Bech32,
} from "@cosmjs/encoding";
import {
coins,
encodeAminoPubkey,