Skip to content

Commit

Permalink
update get networktype
Browse files Browse the repository at this point in the history
  • Loading branch information
toandq2009 committed Jan 25, 2024
1 parent 9171c54 commit eb6b355
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions packages/common/src/utils/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -136,13 +136,8 @@ export function getNetworkTypeByBip44HDPath(path: BIP44HDPath): LedgerAppType {
case 118:
return 'cosmos';
case 0:
//@ts-ignore
//TODO: Default ledger bitcoin address type is bech32 m84
return 'btc84';
case 1:
//@ts-ignore
//TODO: Default ledger bitcoin address type is bech32 m84
return 'tbtc84';
return 'btc';
case 60:
return 'eth';
case 195:
Expand Down Expand Up @@ -182,7 +177,6 @@ export function findLedgerAddress(AddressesLedger, chainInfo: ChainInfoWithoutEn
return AddressesLedger?.eth;
} else if (networkType === 'bitcoin') {
const typeBtc = typeBtcLedgerByAddress(chainInfo, addressType);
console.log('🚀 ~ findLedgerAddress ~ typeBtc:', typeBtc);
return AddressesLedger?.[typeBtc];
} else {
return AddressesLedger?.cosmos;
Expand Down

0 comments on commit eb6b355

Please sign in to comment.