airgap-it / beacon-sdk

The beacon sdk allows developers of dApps and wallets on Tezos to implement the wallet interaction standard tzip-10.
https://walletbeacon.io
MIT License
101 stars 65 forks source link

fix: WC bugs #727

Closed IsaccoSordo closed 7 months ago

IsaccoSordo commented 7 months ago
  1. This PR addresses a potential bug that appears only when 2 or more tabs are open, and all of them have a paring modal open. In this scenario when a tab successfully pairs with a wallet, the others also correctly sync thanks to broadcast channel. However, beacon enters a broken state when closing all the open alerts because, in the tabs that never concluded the sync, they still have a pending proposal.
  2. WC's ping gets dropped after a delay oft 30s. Added interval to generate a new one after expiration.