WalletConnect / WalletConnectFlutterV2

WalletConnect v2 client made in Dart for Flutter.
https://pub.dev/packages/walletconnect_flutter_v2
Apache License 2.0
101 stars 52 forks source link

Fix Sign Engines's session request logic #269

Closed quetool closed 4 months ago

quetool commented 4 months ago

Description

There was a bad decision-making process inside Sign Engine in regards of session requests where a wallet could use methods handlers AND onSessionRequest events but not separately.

The data carried by both logics didn't change, method handler will still make use of topic and parameters and onSessionRequest event will still make use of SessionRequestEvent object which contains id, topic, method, chainId and params but by fixing the decision-making logic inside Sign Engine we now resolve this issue https://github.com/WalletConnect/WalletConnectFlutterV2/issues/258

APPROVE SESSIONS:

BEFORE PR:

AFTER PR:

HANDLING SESSION REQUESTS:

BEFORE PR:

AFTER PR:

How Has This Been Tested?

Due Dilligence