Skip to content
This repository has been archived by the owner on Feb 21, 2024. It is now read-only.

purser-metamask will throw when cancelling signing a message or transaction #246

Merged
merged 4 commits into from
Jul 15, 2019

Conversation

rdig
Copy link
Member

@rdig rdig commented Jul 11, 2019

Due to the need to properly detect when a user has cancelled signing a transaction, throwing an error is better then just logging a warning.

As such, we've changed purser-metamask to throw on each instance where a user cancels, either signing a message, or a transaction.

Changes

  • purser-metamask static signTransaction now throws a custom message when the user cancels
  • purser-metamask static signMessage now throws a custom message when the user cancels
  • Fixed both unit tests related to the above changes

@rdig rdig added this to the Sprint 30 milestone Jul 11, 2019
@rdig rdig self-assigned this Jul 11, 2019
@rdig rdig force-pushed the hotfix/metamask-throw-on-cancel branch from e063e5c to ffb07ab Compare July 15, 2019 00:24
@rdig rdig merged commit 57eee3d into master Jul 15, 2019
@rdig rdig deleted the hotfix/metamask-throw-on-cancel branch July 15, 2019 00:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant