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

fix waitingforreceipt error #7098

Merged
merged 8 commits into from
Jun 25, 2024
Merged

fix waitingforreceipt error #7098

merged 8 commits into from
Jun 25, 2024

Conversation

luu-alex
Copy link
Contributor

@luu-alex luu-alex commented Jun 12, 2024

Description

#7007
This was an issue reported internally, waitforreceipt would fail when a new test geth env was set up,
this will catch the error produced. Fixes this problem ethereum/go-ethereum#28877
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:

  • 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 lint with success and extended the tests and types if necessary.
  • I ran npm run test:unit with success.
  • I ran npm run test:coverage and my test cases cover all the lines and branches of the added code.
  • I ran npm run build and tested 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.
  • I have linked Issue(s) with this PR in "Linked Issues" menu.

Copy link

github-actions bot commented Jun 12, 2024

Bundle Stats

Hey 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

Files count Total bundle size % Changed
10 630.09 kB → 630.28 kB (+191 B) +0.03%
Changeset
File Δ Size
../web3-eth/lib/commonjs/rpc_method_wrappers.js 📈 +473 B (+1.13%) 40.92 kB → 41.38 kB
View detailed bundle breakdown

Added

No assets were added

Removed

No assets were removed

Bigger

Asset File Size % Changed
web3.min.js 610.8 kB → 610.98 kB (+191 B) +0.03%

Smaller

No assets were smaller

Unchanged

Asset File Size % Changed
../lib/commonjs/index.d.ts 8.69 kB 0%
../lib/commonjs/accounts.d.ts 3.89 kB 0%
../lib/commonjs/types.d.ts 2.67 kB 0%
../lib/commonjs/web3.d.ts 1.35 kB 0%
../lib/commonjs/web3_eip6963.d.ts 1.2 kB 0%
../lib/commonjs/abi.d.ts 999 B 0%
../lib/commonjs/eth.exports.d.ts 280 B 0%
../lib/commonjs/providers.exports.d.ts 183 B 0%
../lib/commonjs/version.d.ts 60 B 0%

Copy link

@github-actions github-actions bot left a 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: 60a6a8c Previous: bfe2769 Ratio
processingTx 9331 ops/sec (±3.76%) 8959 ops/sec (±4.44%) 0.96
processingContractDeploy 40651 ops/sec (±7.07%) 39629 ops/sec (±8.47%) 0.97
processingContractMethodSend 16659 ops/sec (±7.72%) 16647 ops/sec (±9.83%) 1.00
processingContractMethodCall 27939 ops/sec (±8.02%) 28056 ops/sec (±6.60%) 1.00
abiEncode 46269 ops/sec (±6.73%) 43700 ops/sec (±8.36%) 0.94
abiDecode 30823 ops/sec (±8.08%) 30625 ops/sec (±8.11%) 0.99
sign 1590 ops/sec (±2.95%) 1567 ops/sec (±0.76%) 0.99
verify 379 ops/sec (±1.15%) 376 ops/sec (±0.39%) 0.99

This comment was automatically generated by workflow using github-action-benchmark.

Copy link

codecov bot commented Jun 13, 2024

Codecov Report

Attention: Patch coverage is 33.33333% with 4 lines in your changes missing coverage. Please review.

Project coverage is 94.71%. Comparing base (bfe2769) to head (60a6a8c).

Additional details and impacted files
@@            Coverage Diff             @@
##              4.x    #7098      +/-   ##
==========================================
- Coverage   94.75%   94.71%   -0.05%     
==========================================
  Files         215      215              
  Lines        8334     8339       +5     
  Branches     2296     2298       +2     
==========================================
+ Hits         7897     7898       +1     
- Misses        437      441       +4     
Flag Coverage Δ
UnitTests 94.71% <33.33%> (-0.05%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Components Coverage Δ
web3 ∅ <ø> (∅)
web3-core ∅ <ø> (∅)
web3-errors ∅ <ø> (∅)
web3-eth ∅ <ø> (∅)
web3-eth-abi ∅ <ø> (∅)
web3-eth-accounts ∅ <ø> (∅)
web3-eth-contract ∅ <ø> (∅)
web3-eth-ens ∅ <ø> (∅)
web3-eth-iban ∅ <ø> (∅)
web3-eth-personal ∅ <ø> (∅)
web3-net ∅ <ø> (∅)
web3-providers-http ∅ <ø> (∅)
web3-providers-ipc ∅ <ø> (∅)
web3-providers-ws ∅ <ø> (∅)
web3-rpc-methods ∅ <ø> (∅)
web3-utils ∅ <ø> (∅)
web3-validator ∅ <ø> (∅)

Copy link
Contributor

@avkos avkos left a comment

Choose a reason for hiding this comment

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

LGTM. please increase test coverage

if (typeof error === 'object' && !isNullish(error) && 'message' in error && (error as { message: string }).message === 'transaction indexing is in progress') {
console.warn('Transaction indexing is in progress.')
} else {
throw error;
Copy link
Contributor

Choose a reason for hiding this comment

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

This also should be tested locally with Geth before merging.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yup tested locally and works well

@luu-alex luu-alex merged commit 4c36f55 into 4.x Jun 25, 2024
53 of 54 checks passed
@luu-alex luu-alex deleted the fix-waitingforreceipt-error branch June 25, 2024 13:11
@luu-alex luu-alex mentioned this pull request Jul 10, 2024
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