Skip to content

Commit

Permalink
fix lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
baryon2 committed Dec 23, 2024
1 parent afd9747 commit a30781b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
7 changes: 2 additions & 5 deletions src/keychain/keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ export class KeyChain {
const pubKeys: Record<string, string> = {};
for (const chainInfo of chainInfos) {
if (chainInfo.customKeygenfn) {
const key = await chainInfo.customKeygenfn(
privateKey,
getFullHDPath('44', chainInfo.coinType)
);
const key = await chainInfo.customKeygenfn(privateKey, getFullHDPath('44', chainInfo.coinType));
addresses[chainInfo.key] = key.address;
pubKeys[chainInfo.key] = key.pubkey;
continue;
Expand Down Expand Up @@ -326,7 +323,7 @@ export class KeyChain {
if (chainInfo.customKeygenfn) {
const key = await chainInfo.customKeygenfn(
mnemonic,
getFullHDPath(purpose, chainInfo.coinType, addressIndex.toString())
getFullHDPath(purpose, chainInfo.coinType, addressIndex.toString()),
);
addresses[chainInfo.key] = key.address;
pubKeys[chainInfo.key] = key.pubkey;
Expand Down
9 changes: 6 additions & 3 deletions src/types/keychain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,13 @@ export type ChainInfo = {
coinType: string;
useBip84?: boolean;
btcNetwork?: typeof NETWORK;
customKeygenfn?: (key: string, path: string) => Promise<{
customKeygenfn?: (
key: string,
path: string,
) => Promise<{
address: string;
pubkey: string
}>
pubkey: string;
}>;
};

export type GetSignerParams = {
Expand Down

0 comments on commit a30781b

Please sign in to comment.