-
Notifications
You must be signed in to change notification settings - Fork 5k
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
catching promise - legacy provider error #7022
Conversation
Bundle StatsHey there, this message comes from a GitHub action that helps you and reviewers to understand how these changes affect the size of this project's bundle. As this PR is updated, I'll keep you updated on how the bundle size is impacted. Total
Changeset
View detailed bundle breakdownAdded No assets were added Removed No assets were removed Bigger
Smaller No assets were smaller Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Benchmark
Benchmark suite | Current: fa2461c | Previous: f216540 | Ratio |
---|---|---|---|
processingTx |
9136 ops/sec (±4.35% ) |
8831 ops/sec (±4.37% ) |
0.97 |
processingContractDeploy |
40512 ops/sec (±6.41% ) |
38915 ops/sec (±7.67% ) |
0.96 |
processingContractMethodSend |
19231 ops/sec (±7.69% ) |
18648 ops/sec (±7.13% ) |
0.97 |
processingContractMethodCall |
39645 ops/sec (±6.28% ) |
37036 ops/sec (±6.22% ) |
0.93 |
abiEncode |
45506 ops/sec (±6.84% ) |
42619 ops/sec (±6.84% ) |
0.94 |
abiDecode |
30635 ops/sec (±7.69% ) |
29814 ops/sec (±6.52% ) |
0.97 |
sign |
1612 ops/sec (±3.86% ) |
1551 ops/sec (±1.05% ) |
0.96 |
verify |
376 ops/sec (±0.56% ) |
366 ops/sec (±0.52% ) |
0.97 |
This comment was automatically generated by workflow using github-action-benchmark.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## 4.x #7022 +/- ##
==========================================
- Coverage 91.97% 91.96% -0.01%
==========================================
Files 215 215
Lines 8287 8291 +4
Branches 2277 2277
==========================================
+ Hits 7622 7625 +3
- Misses 665 666 +1
Flags with carried forward coverage won't be shown. Click here to find out more.
|
error as JsonRpcResponse<ResponseType, unknown>, | ||
{ legacy: true, error: true } | ||
); | ||
reject(processedError); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
According to codevov, this line is not checked at unit testing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
covered
unrelated to PR but formatted send_transaction.test.ts |
Description
Please include a summary of the changes and be sure to follow our Contribution Guidelines.
Type of change
#7035
Wallets such as phantom is erroring out when rejecting to sign/send a transaction when testing with web3modal in laboratory
This is due to phantom being considered as a legacy provider to web3 and throws when trying to process jsonrpcresponses.
This PR catches the error and doesnt crash the app when the user rejects signing a transaction
Checklist:
npm run lint
with success and extended the tests and types if necessary.npm run test:unit
with success.npm run test:coverage
and my test cases cover all the lines and branches of the added code.npm run build
and testeddist/web3.min.js
in a browser.CHANGELOG.md
file in the root folder.