Skip to content

Commit

Permalink
fix: accountsChanged event
Browse files Browse the repository at this point in the history
  • Loading branch information
YuWT-CN committed Sep 12, 2024
1 parent 045bffd commit 718dd0e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils/wallet/providers/cactuslink_wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -141,10 +141,10 @@ export class CactusLinkWallet extends WalletProvider {
if (!this.cactuslinkWalletInfo) {
throw new Error("Cactus Link Wallet not connected");
}
// subscribe to account change event
if (eventName === "accountChanged") {
return this.bitcoinNetworkProvider.on(eventName, callBack);
return this.bitcoinNetworkProvider.on("accountsChanged", callBack);
}
return this.bitcoinNetworkProvider.on(eventName, callBack);
};

// Mempool calls
Expand Down

0 comments on commit 718dd0e

Please sign in to comment.