Describe the bug
sign() method returns a promise that fulfills when the user signs or cancels the transaction signature.
But if the user closes the casper wallet window, the promise that not fulfill.
Expected behavior
The expect result would be that the promise fulfills with canceled property set to true. Same as when the user clicks on Cancel button.
Required information:
- Operating System: Windows 11 & Mac OS
- Browser Name and Version: Chrome and Edge
- Casper Wallet Version