-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix wallets integration issues (#731)
Ref #726 Closes #732 This PR improves dApp integration with browser wallets. After rejecting any of the actions during account connection, the dApp opened uncontrollable wallet windows. What has been done: - The changes trigger an action when the button is clicked. Additionally, when the user rejects signing the message a special button is shown to repeat the action. - Do not trigger connection action again when wallet is selected. - Reset the status of the sign message to the initial state when the user changed the wallet and back to the previous one. Specific issues for the Unisat wallet will be resolved in the next PR. ### UI #### Before **Rejecting the action - Connect wallet** https://github.com/user-attachments/assets/756addd4-092a-4ff3-a3f7-09e2812ce893 **Rejecting the action - Sign message** https://github.com/user-attachments/assets/64a1039a-35c5-46fd-b384-0d57a37e2fd0 #### After **Rejecting the action - Connect wallet** https://github.com/user-attachments/assets/4fad2923-6a18-43f9-ad14-69dcd46bf9b2 **Rejecting the action - Sign message** https://github.com/user-attachments/assets/d46d448e-e94d-434c-8f47-23278d149a85
- Loading branch information
Showing
3 changed files
with
29 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters