Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Plug-Extension] [Bug] plug.requestTransfer doesn't throw if user declines the transfer #698

Open
ZenVoich opened this issue Dec 12, 2022 · 0 comments

Comments

@ZenVoich
Copy link

Chrome 107.0.5304.110
Plug 0.6.2.1

Code to test:

await window.ic.plug.requestTransfer({
        to: '8b61ff722d7e6321eb99bb607ab0cf323b3c64b43d6a13c245c8a4e197f7b38b',
        amount: Number(111112),
        opts: {
          fee: 10000,
        },
      });

Actual Result
promise neither resolved nor rejected

Expected Result:
promise rejected


Looks like it was broken in Plug 0.6.2.1.
I tested this code in Plug 0.6.1.2 and it throws "The transaction was rejected."

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant