WalletConnectSwiftV2: [Crash] SDK crashes when disconnect from topic

Describe the bug When disconnecting from topic, SDK crashes sometime.

WalletConnectNetworking/NetworkingInteractor.swift:98: Fatal error: 'try!' expression unexpectedly raised an error: WalletConnectKMS.Serializer.Errors.symmetricKeyForTopicNotFound
2022-11-17 07:59:43.276879+1100 Dapper Pro[40117:9253430] WalletConnectNetworking/NetworkingInteractor.swift:98: Fatal error: 'try!' expression unexpectedly raised an error: WalletConnectKMS.Serializer.Errors.symmetricKeyForTopicNotFound

SDK Version

  • Client: Swift
  • Version: 1.0.5

To Reproduce Steps to reproduce the behavior:

  1. Go to a dApp
  2. Make a connection
  3. Disconnect from the topic
  4. Disconnect again from the topic

Expected behavior The pairing or session need to be removed from the list

Screenshots Screenshot 2022-11-17 at 8 00 25 am

Device:

  • Device: iPhone12 Pro Max
  • OS: iOS16

About this issue

  • Original URL
  • State: closed
  • Created 2 years ago
  • Comments: 15 (9 by maintainers)

Most upvoted comments

if you like you can test on develop branch already