Skip to content

Commit

Permalink
fix: wallet connector (#80)
Browse files Browse the repository at this point in the history
  • Loading branch information
totraev authored Dec 2, 2024
1 parent 5b3a07f commit 56cb7b3
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
5 changes: 5 additions & 0 deletions .changeset/calm-lies-dance.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@babylonlabs-io/bbn-wallet-connect": patch
---

update wallet connector
6 changes: 2 additions & 4 deletions src/context/Chain.context.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@ import { createContext, PropsWithChildren, useEffect, useState, useCallback, use
import { createWalletConnector } from "@/core";
import metadata from "@/core/wallets";
import { WalletConnector } from "@/core/WalletConnector";
import { BTCProvider } from "@/core/wallets/btc/BTCProvider";
import { BBNProvider } from "@/core/wallets/bbn/BBNProvider";
import type { BBNConfig, IProvider, BTCConfig, ExternalConnector, IBTCProvider, IBBNProvider } from "@/core/types";

import { StateProvider } from "./State.context";
Expand All @@ -30,8 +28,8 @@ interface ProviderProps {
}

export interface Connectors {
BTC: WalletConnector<"BTC", BTCProvider> | null;
BBN: WalletConnector<"BBN", BBNProvider> | null;
BTC: WalletConnector<"BTC", IBTCProvider> | null;
BBN: WalletConnector<"BBN", IBBNProvider> | null;
}

const defaultState: Connectors = {
Expand Down

0 comments on commit 56cb7b3

Please sign in to comment.