Skip to content

Commit

Permalink
repalce bs58 package and remove unnecessary judgment
Browse files Browse the repository at this point in the history
  • Loading branch information
lukema95 committed Oct 22, 2024
1 parent 118431c commit 37b24d4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/tasks/src/account.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { bs58 } from "@coral-xyz/anchor/dist/cjs/utils/bytes";
import { input } from "@inquirer/prompts";
import { Keypair } from "@solana/web3.js";
import { bech32 } from "bech32";
import { validateMnemonic } from "bip39";
import bs58 from "bs58";
import * as envfile from "envfile";
import * as fs from "fs";
import { task } from "hardhat/config";
Expand Down Expand Up @@ -82,7 +82,6 @@ export const getSolanaWalletFromLocalFileOrInput =
return Keypair.fromSecretKey(bs58.decode(solanaPrivateKey));
} catch (e) {
console.error(`❌ Invalid Solana private key: ${e}`);
continue;
}
}
};
Expand Down

0 comments on commit 37b24d4

Please sign in to comment.