You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using package @walletconnect/ethereum-provider": "^2.3.2
I do this...
const provider = await WalletConnectV2.init({
chains,
projectId: '<project_id>',
rpcMap,
});
const result = await provider.enable();
// If the user closes the modal, the code below is never reached
// ...
return result
Calling enable() triggers the modal. But if the user closes the modal without scanning the qr code, this promise never resolves.
It would be very helpful to either have a rejection of the promise to indicate that the modal was closed, or resolve with a boolean indicating the state of the action.
Describe the bug
Using package
@walletconnect/ethereum-provider": "^2.3.2
I do this...
Calling enable() triggers the modal. But if the user closes the modal without scanning the qr code, this promise never resolves.
It would be very helpful to either have a rejection of the promise to indicate that the modal was closed, or resolve with a boolean indicating the state of the action.
SDK Version (if relevant)
@walletconnect/ethereum-provider
2.3.2
To Reproduce
https://codesandbox.io/s/crazy-hypatia-9p1g28?file=/src/App.vue
Steps to reproduce the behavior:
connecting
flag should be set to trueconnecting
flag is not set to falseExpected behavior
On modal close, the call to
provider.enable()
should either resolve with a falsy value or throw an error.The text was updated successfully, but these errors were encountered: