This PR fixes the disconnect event handling for Pera and Defly wallets. It addresses an issue where the wallet state wasn't updating correctly when a session was deleted in the mobile app.
Details
Implemented disconnect event listener registration in connect method
Added proper handling of disconnect events to update the wallet store
Updated test suites for Pera and Defly wallets to cover disconnect scenarios
Ensured compatibility with Pera Connect v1 and v2 (beta) implementations
Refactored mock structures in tests to accurately represent wallet interfaces
This fix improves wallet connection management reliability, especially when disconnecting from the mobile app. Users will now see the correct wallet state in their applications after external disconnection.
Description
This PR fixes the disconnect event handling for Pera and Defly wallets. It addresses an issue where the wallet state wasn't updating correctly when a session was deleted in the mobile app.
Details
connect
methodThis fix improves wallet connection management reliability, especially when disconnecting from the mobile app. Users will now see the correct wallet state in their applications after external disconnection.
Closes #271