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

internal/ethapi: add more testcase for GetTransactionReceipt #27527

Merged
merged 13 commits into from
Jul 13, 2023

Conversation

jsvisa
Copy link
Contributor

@jsvisa jsvisa commented Jun 21, 2023

No description provided.

Copy link
Member

@lightclient lightclient left a comment

Choose a reason for hiding this comment

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

This test seems nice, but I feel like we should be putting our energy into adding rpc tests to https://github.com/ethereum/execution-apis

@jsvisa
Copy link
Contributor Author

jsvisa commented Jun 23, 2023

I'm going to refact the code in internal/ethapi, so test code is first introduced.

This test seems nice, but I feel like we should be putting our energy into adding rpc tests to https://github.com/ethereum/execution-apis

@lightclient Do you mean we should also add test cases inside https://github.com/ethereum/execution-apis/tree/main/tests/eth_getTransactionReceipt, if so, I'll file an PR in https://github.com/ethereum/execution-apis

@jsvisa jsvisa requested a review from lightclient June 29, 2023 01:24
@lightclient
Copy link
Member

Yes exactly. You can find out more info on how to generate those tests here: https://github.com/ethereum/execution-apis/blob/main/tests/README.md

@jsvisa jsvisa force-pushed the eth-api-receipt branch from 389161c to 82ab934 Compare July 12, 2023 16:31
@jsvisa
Copy link
Contributor Author

jsvisa commented Jul 12, 2023

@lightclient please take another look. I'll file another two PRs in rpctestgen and execution-api

internal/ethapi/api_test.go Outdated Show resolved Hide resolved
internal/ethapi/api_test.go Outdated Show resolved Hide resolved
internal/ethapi/api_test.go Outdated Show resolved Hide resolved
internal/ethapi/api_test.go Show resolved Hide resolved
@holiman holiman merged commit 5d03504 into ethereum:master Jul 13, 2023
@holiman holiman added this to the 1.12.1 milestone Jul 13, 2023
devopsbo3 pushed a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
…m#27527)

* internal/ethapi: testBackend reuse the same db

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: implment GetTransaction

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: implement GetReceipts

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: insert receipts and setup txlookup

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: add simple success tx receipt test

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: add case create contract

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: add contract call receipt

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: add tx notfound

Signed-off-by: jsvisa <[email protected]>

* internal/ethapi: add dynamic fee testcase

* internal/ethapi: add accessList receipt

* internal/ethapi: no need to insert receipt chain, no error

* internal/ethapi: use HeaderByHash instead

* internal/ethapi: add one more case

---------

Signed-off-by: jsvisa <[email protected]>
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
devopsbo3 added a commit to HorizenOfficial/go-ethereum that referenced this pull request Nov 10, 2023
@jsvisa jsvisa deleted the eth-api-receipt branch September 5, 2024 15:16
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