TxnLab / use-wallet

A framework agnostic wallet integration library for Algorand dApps
https://txnlab.gitbook.io/use-wallet
MIT License
82 stars 34 forks source link

fix(walletconnect): use active network chain ID only #282

Closed drichar closed 2 months ago

drichar commented 2 months ago

Description

This PR enhances the WalletConnect class by implementing an activeChainId getter to dynamically determine the correct CAIP-2 chain ID based on the active network. The connect and signTransactions methods have been updated to use this getter, ensuring that only the chain ID for the currently active network is included in session proposals and transaction signing requests.

Details

Closes #281