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

Nicos99/revert call #6009

Merged
merged 7 commits into from
Apr 13, 2023
Merged

Nicos99/revert call #6009

merged 7 commits into from
Apr 13, 2023

Conversation

luu-alex
Copy link
Contributor

@luu-alex luu-alex commented Apr 13, 2023

Description

From #5962, this PR is created so testcases can pass properly
Please include a summary of the changes and be sure to follow our Contribution Guidelines.

Type of change

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist for 1.x:

  • I have selected the correct base branch.
  • I have performed a self-review of my own code.
  • I have commented my code, particularly in hard-to-understand areas.
  • I have made corresponding changes to the documentation.
  • My changes generate no new warnings.
  • Any dependent changes have been merged and published in downstream modules.
  • I ran npm run dtslint with success and extended the tests and types if necessary.
  • I ran npm run test:cov and my test cases cover all the lines and branches of the added code.
  • I ran npm run build with success.
  • I have tested the built dist/web3.min.js in a browser.
  • I have tested my code on the live network.
  • I have checked the Deploy Preview and it looks correct.
  • I have updated the CHANGELOG.md file in the root folder.

Checklist for 4.x:

  • I have selected the correct 4.x base branch.
  • Within the description, the feature or issue is discussed in detail or an issue is linked.
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas.
  • I have added any required tests for the changes I made
  • I have made corresponding changes to the documentation
  • Any dependent changes have been merged and published in downstream modules.
  • I ran yarn successfully
  • I ran yarn lint successfully
  • I ran yarn build:web successfully
  • I ran yarn test:unit successfully
  • I ran yarn test:integration successfully
  • I ran compile:contracts successfully
  • I have tested my code.
  • I have updated the corresponding CHANGELOG.md file in the packages I have edited.

…)' to manage revert embedded error details got from some providers like MetaMask (related to issue #4454)
…llback(err, result)' to handle Revert in all cases: use `originalError` sub-object if provided
(resolved Conflicts for CHANGELOG.md)
…sendTxCallback(err, result)' to better manage revert call reason from some providers like MetaMask (related to issue #4454)
…ert-call-from-metamask

(resoled Conflict with 'CHANGELOG.md' and 'packages/web3-core-method/src/index.js' caused last PR on the same bug)
@luu-alex luu-alex marked this pull request as ready for review April 13, 2023 15:17
@coveralls
Copy link

Pull Request Test Coverage Report for Build 4690904761

  • 0 of 0 changed or added relevant lines in 0 files are covered.
  • 278 unchanged lines in 8 files lost coverage.
  • Overall coverage increased (+2.4%) to 75.06%

Files with Coverage Reduction New Missed Lines %
packages/web3-core-requestmanager/src/jsonrpc.js 2 64.29%
packages/web3-core-method/lib/index.js 5 93.97%
packages/web3-core-helpers/src/formatters.js 9 83.86%
packages/web3-core-helpers/src/errors.js 31 1.47%
packages/web3-utils/src/soliditySha3.js 34 3.43%
packages/web3-utils/src/index.js 40 40.3%
packages/web3-utils/src/utils.js 46 10.39%
packages/web3-eth-accounts/src/index.js 111 22.94%
Totals Coverage Status
Change from base Build 4667138294: 2.4%
Covered Lines: 3343
Relevant Lines: 4202

💛 - Coveralls

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