web3.js
web3.js copied to clipboard
Add `ERR_TX_SIGNING` and `ERR_TX_GAS_MISMATCH` and refactor and relocate some errors' classes
Description
Fixes https://github.com/web3/web3.js/issues/5461
Type of change
- [ ] Bug fix (non-breaking change which fixes an issue)
- [ ] New feature (non-breaking change which adds functionality)
- [x] 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 dtslintwith success and extended the tests and types if necessary. - [ ] I ran
npm run test:covand my test cases cover all the lines and branches of the added code. - [ ] I ran
npm run buildwith success. - [ ] I have tested the built
dist/web3.min.jsin 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.mdfile 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
yarnsuccessfully - [ ] I ran
yarn lintsuccessfully - [ ] I ran
yarn build:websuccessfully - [ ] I ran
yarn test:unitsuccessfully - [ ] I ran
yarn test:integrationsuccessfully - [ ] I ran
compile:contractssuccessfully - [ ] I have tested my code.
- [ ] I have updated the corresponding
CHANGELOG.mdfile in the packages I have edited.