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

Added Redirect validation during Web3Wallet and Web3App initialization #277

Closed quetool closed 3 months ago

quetool commented 3 months ago

Description

Added Redirect validation during Web3Wallet and Web3App initialization

Possible errors that the wallet or dapp developer would see in the console log if something wrong is happening with the Redirect value:

  1. CFBundleURLTypes key is missing from Info.plist (screenshot is wrong by saying CFBundleURLSchemes, it was already changed to CFBundleURLTypes) 1

  2. The whole Redirect object is missing from PairingMetada 2

  3. Only native option from Redirect object is missing 3

  4. native option on Redirect object is set but not included in CFBundleURLTypes key 4

Example for Web3Wallet are given but the same will happen for Web3App

Due Dilligence

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
No data about Coverage
0.0% Duplication on New Code

See analysis details on SonarCloud