Skip to content

Commit

Permalink
fix get address btc old new version
Browse files Browse the repository at this point in the history
  • Loading branch information
haunv3 committed Jan 22, 2025
1 parent ff77bb1 commit 0d9c069
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/libs/keplr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,11 @@ export default class Keplr extends CosmosWallet {
if (!isValid) return undefined;
}

if (chainId === 'bitcoin') {
// @ts-ignore
return keplr.bitcoin.getKey(chainId);
// FIXME: new version extension owallet btc
// @ts-ignore
const owalletBitcoin = keplr?.bitcoin;
if (chainId === 'bitcoin' && owalletBitcoin) {
return owalletBitcoin.getKey(chainId);
}

return keplr.getKey(chainId);
Expand Down

0 comments on commit 0d9c069

Please sign in to comment.