Skip to content

Commit

Permalink
fix lint issues
Browse files Browse the repository at this point in the history
  • Loading branch information
baryon2 committed Sep 17, 2024
1 parent 909896a commit 4d28215
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/key/eth-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export class EthWallet {
private walletType: 'mnemonic' | 'pvtKey',
private options: WalletOptions,
private provider?: Provider,
) { }
) {}

/**
* Generates a wallet from a mnemonic. Returns an EthWallet object.
Expand Down
1 change: 0 additions & 1 deletion src/key/wallet-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Wallet } from './wallet';
import * as base64js from 'base64-js';
import { bip39Token } from '../crypto/bip39/bip39-token';


/***
* Generate a wallet from a mnemonic
* @param mnemonic
Expand Down
6 changes: 3 additions & 3 deletions src/keychain/keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,9 @@ export class KeyChain {
const wallet =
chainInfo.coinType === '60'
? EthWallet.generateWalletFromPvtKey(privateKey, {
paths: [getHDPath('60', '0')],
addressPrefix: chainInfo.addressPrefix,
})
paths: [getHDPath('60', '0')],
addressPrefix: chainInfo.addressPrefix,
})
: await PvtKeyWallet.generateWallet(privateKey, chainInfo.addressPrefix);
const [account] = await wallet.getAccounts();
if (account) {
Expand Down

0 comments on commit 4d28215

Please sign in to comment.