Concordium / concordium-reference-wallet-ios

Reference wallet for the Concordium blockchain
Apache License 2.0
11 stars 10 forks source link

[CBW-1218] Block WalletConnect multiple requests at the same time #382

Closed prinshamlet closed 10 months ago

prinshamlet commented 10 months ago

Purpose

For safety, it is important to not allow dApps to send requests upon other request. It can mislead a user and make him accept request, that he/she would've otherwise not approved.

Changes

In order to prevent that, a bool flag has been added and is set true when a request is pending. After it's rejected or accepted, the flag is set back to false.

Jira ticket: https://concordium.atlassian.net/browse/CBW-1218