Skip to content

Commit

Permalink
feat: bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
totraev committed Dec 1, 2024
1 parent 55f2f31 commit ebb9eab
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/light-parents-drum.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@babylonlabs-io/bbn-wallet-connect": minor
---

add external connectors
3 changes: 1 addition & 2 deletions src/core/wallets/bbn/keplr/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export class KeplrProvider extends BBNProvider {
this.rpc = config.rpc;
}

async connectWallet(): Promise<this> {
async connectWallet(): Promise<void> {
if (!this.chainId) throw new Error("Chain ID is not initialized");
if (!this.rpc) throw new Error("RPC URL is not initialized");

Expand All @@ -49,7 +49,6 @@ export class KeplrProvider extends BBNProvider {
publicKeyHex: Buffer.from(key.pubKey).toString("hex"),
address: bech32Address,
};
return this;
} else {
throw new Error("Could not connect to Keplr");
}
Expand Down
3 changes: 1 addition & 2 deletions src/core/wallets/btc/okx/provider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export class OKXProvider extends BTCProvider {
this.provider = wallet[providerName];
}

connectWallet = async (): Promise<this> => {
connectWallet = async (): Promise<void> => {
try {
await this.wallet.enable(); // Connect to OKX Wallet extension
} catch (error) {
Expand All @@ -60,7 +60,6 @@ export class OKXProvider extends BTCProvider {
publicKeyHex: compressedPublicKey,
address,
};
return this;
} else {
throw new Error("Could not connect to OKX Wallet");
}
Expand Down

0 comments on commit ebb9eab

Please sign in to comment.