Skip to content

Return tx errors correctly - #186

Merged
estebanmino merged 3 commits into
developfrom
fix-tx-error-swalloing
Dec 13, 2019
Merged

estebanmino merged 3 commits into
developfrom
fix-tx-error-swalloing

Conversation

@brunobar79

@brunobar79 brunobar79 commented Dec 13, 2019 •

Copy link
Copy Markdown
Contributor

We have seen a bunch of error like this one in mobile that looks like : "[object Object]

Screen Shot 2019-12-13 at 3 40 52 AM

This is the reason:

Screen Shot 2019-12-13 at 3 40 07 AM

This PR fixes the issue by passing the error object instead.

@brunobar79 brunobar79 changed the title Safely stringify error Safely stringify tx errors Dec 13, 2019
@codecov-io

codecov-io commented Dec 13, 2019 •

Copy link
Copy Markdown

Codecov Report

Merging #186 into develop will not change coverage.
The diff coverage is 100%.

Impacted file tree graph

@@          Coverage Diff           @@
##           develop   #186   +/-   ##
======================================
  Coverage      100%   100%           
======================================
  Files           23     23           
  Lines         1515   1515           
  Branches       210    210           
======================================
  Hits          1515   1515
Impacted Files Coverage Δ
src/transaction/TransactionController.ts 100% <100%> (ø) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 873cf96...7c831bc. Read the comment docs.

@brunobar79 brunobar79 changed the title Safely stringify tx errors Return tx errors correctly Dec 13, 2019

@estebanmino estebanmino left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@estebanmino
estebanmino merged commit 9125c22 into develop Dec 13, 2019
@estebanmino
estebanmino deleted the fix-tx-error-swalloing branch December 13, 2019 13:52
Mrtenz pushed a commit that referenced this pull request Oct 16, 2025
* 10.0.0

* Update changelog

---------

Co-authored-by: github-actions <github-actions@github.com>
Co-authored-by: Mark Stacey <markjstacey@gmail.com>
Naz-Ovh pushed a commit to 0x-fork/metamask-core that referenced this pull request Sep 13, 2026
Naz-Ovh pushed a commit to 0x-fork/metamask-core that referenced this pull request Nov 7, 2026
The inline docs erroneously described this function as returning a type
hash for "V1" of `signTypedData`. But "V1" didn't include a type hash.
Rather, this function returns the hash of the entire message.
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

Successfully merging this pull request may close these issues.

3 participants