Skip to content

Conversation

@codchen
Copy link
Collaborator

@codchen codchen commented Sep 22, 2025

Describe your changes and provide context

cherrypick the following RPC changes:

Testing performed to validate your change

blockHeight := int64(len(ts.mockClient.txResults) + 1)
for i, block := range blocks {
height := blockHeight + int64(i)
blockTime := time.Now()

Check warning

Code scanning / CodeQL

Calling the system time Warning test

Calling the system time may be a possible source of non-determinism
@codchen codchen force-pushed the tony/rpc-fixes branch 3 times, most recently from 0092a97 to bf0745f Compare September 23, 2025 13:28
@codecov
Copy link

codecov bot commented Sep 23, 2025

Codecov Report

❌ Patch coverage is 91.86047% with 21 lines in your changes missing coverage. Please review.
✅ Project coverage is 63.42%. Comparing base (1efdec1) to head (52db1cb).
⚠️ Report is 2 commits behind head on main.

Files with missing lines Patch % Lines
evmrpc/utils.go 84.61% 4 Missing and 4 partials ⚠️
evmrpc/tests/mock_contracts.go 63.63% 2 Missing and 2 partials ⚠️
evmrpc/block.go 96.55% 1 Missing and 2 partials ⚠️
evmrpc/tx.go 94.91% 1 Missing and 2 partials ⚠️
evmrpc/tests/utils.go 88.23% 1 Missing and 1 partial ⚠️
evmrpc/simulate.go 93.33% 0 Missing and 1 partial ⚠️
Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #2388      +/-   ##
==========================================
+ Coverage   60.44%   63.42%   +2.98%     
==========================================
  Files         314      364      +50     
  Lines       31127    33532    +2405     
==========================================
+ Hits        18815    21269    +2454     
+ Misses      10993    10783     -210     
- Partials     1319     1480     +161     
Files with missing lines Coverage Δ
evmrpc/filter.go 71.48% <100.00%> (-2.48%) ⬇️
evmrpc/tests/tx.go 95.08% <100.00%> (+0.48%) ⬆️
evmrpc/simulate.go 72.17% <93.33%> (+3.88%) ⬆️
evmrpc/tests/utils.go 68.85% <88.23%> (+1.78%) ⬆️
evmrpc/block.go 73.58% <96.55%> (+12.34%) ⬆️
evmrpc/tx.go 63.55% <94.91%> (+5.81%) ⬆️
evmrpc/tests/mock_contracts.go 72.34% <63.63%> (-1.47%) ⬇️
evmrpc/utils.go 76.44% <84.61%> (+3.57%) ⬆️

... and 150 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@stevenlanders stevenlanders left a comment

Choose a reason for hiding this comment

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

For code hygiene and safety, and given the area of modifications, I think we should either remove the skipped tests or ensure they work. What do you think?

@codchen codchen force-pushed the tony/rpc-fixes branch 3 times, most recently from 4eec7d9 to c4a7282 Compare September 24, 2025 07:05
@codchen codchen force-pushed the tony/include-synthetic-log-in-eth branch from c54d9e7 to 98b9061 Compare September 25, 2025 02:22
Base automatically changed from tony/include-synthetic-log-in-eth to main September 25, 2025 04:38
@codchen codchen merged commit dfc15eb into main Sep 25, 2025
51 checks passed
@codchen codchen deleted the tony/rpc-fixes branch September 25, 2025 05:14
codchen added a commit that referenced this pull request Sep 25, 2025
* always include synthetic logs

* more tests

* RPC fixes cherrypick from v6.1.11

* fix block bloom & gas used

* add tests and refactor tx.go

* fix coverage flag

* fix tests
codchen added a commit that referenced this pull request Sep 25, 2025
* Fix gas price mismatch in RPC responses (#2276)

* Only Synthetic Logs for Sei Endpoints (#2268)

* Only Synthetic Logs for Sei evmrpc

* Update comment

* lint

* Update comment

* lint

* Upate to filter and keep evm log bloom

* Update comment

* Update filter

* Add legacy fallback

* Use Transient Receipts

* Update integration tests

* Update integration tests

---------

Co-authored-by: Philip Su <philip.su.522@gmail.com>

* Refactor `GetEvmTxIndex` (#2303)

* [SEI-9891][SEI-9893] Fix input `transactionIndex` (#2302)

* Add versioning to EVM params (#2297)

* Add versioning to EVM params

* add test

* do not check version for latest height (#2311)

* Fix ante failure check in RPC (#2343)

Fixed ante failure check in RPC

Co-authored-by: Philip Su <philip.su.522@gmail.com>

* Skip txs failing ante when counting tx index for receipts (#2344)

* Skip txs failing ante when counting tx index for receipts

* fix tests

* tmp

* Use Current Block Context For Logs (#2333)

* Use Current Block Context

* Overwrite block number and hash in fetcher

* Update to synthetic logs

* fix unit tests

---------

Co-authored-by: Jeremy Wei <jeremy.t.wei@gmail.com>
Co-authored-by: Tony Chen <codchen03@gmail.com>

* Exclude synthetic logs from receipts returned by eth_ (#2361)

* Exclude synthetic logs from receipts returned by eth_

* fix integration tests

* eth_gasPrice fixes (#2364)

* gas price fix

* remove unnecessary code to get block gas limit

* go fmt

* add coverage

* remove unnecessary line

* Estimate Gas Fix (#2374)

* add estimate gas fix

* fix lint

* add test

* update go mod

* only use estimate if below gas limit

* update go mod

* fix

* fix unnecessary logic

* go mod update

* update go mod

* update geth

* [CON-69] Fix block gas used (#2377)

* always include synthetic logs in eth_ endpoints (#2371)

* always include synthetic logs

* adjust EvmLogBloom

* more tests

* fix conflicts

* RPC fixes cherrypick from v6.1.11 (#2388)

* always include synthetic logs

* more tests

* RPC fixes cherrypick from v6.1.11

* fix block bloom & gas used

* add tests and refactor tx.go

* fix coverage flag

* fix tests

* fix conflicts

---------

Co-authored-by: Kartik Bhat <kartikbhatri@gmail.com>
Co-authored-by: Philip Su <philip.su.522@gmail.com>
Co-authored-by: pdrobnjak <pavle@tenderly.co>
Co-authored-by: Jeremy Wei <jeremy.t.wei@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants