Skip to content
This repository has been archived by the owner on Apr 4, 2024. It is now read-only.

Problem: eth_newPendingTransactionFilter don't return correct tx hash #1012

Merged
merged 9 commits into from Mar 24, 2022

Conversation

yihuang
Copy link
Contributor

@yihuang yihuang commented Mar 22, 2022

Description

Closes: #1011
Solution:

  • use eth tx hash rather than tendermint one

tested with this integration test: https://github.com/crypto-org-chain/cronos/pull/404/files#diff-126ee319c6fd3229b0d12d6e6110955bd64ea6a419086f618a06dedd1234fc68R15


For contributor use:

  • Targeted PR against correct branch (see CONTRIBUTING.md)
  • Linked to Github issue with discussion and accepted design OR link to spec that describes this work.
  • Code follows the module structure standards.
  • Wrote unit and integration tests
  • Updated relevant documentation (docs/) or specification (x/<module>/spec/)
  • Added relevant godoc comments.
  • Added a relevant changelog entry to the Unreleased section in CHANGELOG.md
  • Re-reviewed Files changed in the Github PR explorer

For admin use:

  • Added appropriate labels to PR (ex. WIP, R4R, docs, etc)
  • Reviewers assigned
  • Squashed all commits, uses message "Merge pull request #XYZ: [title]" (coding standards)

Closes: evmos#1011
Solution:
- use eth tx hash rather than tendermint one
@fedekunze
Copy link
Contributor

@yihuang can you also create a test to prevent this from failing again?

@yihuang
Copy link
Contributor Author

yihuang commented Mar 24, 2022

@yihuang can you also create a test to prevent this from failing again?

done, added an e2e test.

@yihuang yihuang requested a review from fedekunze March 24, 2022 03:00
rpc/ethereum/namespaces/eth/filters/api.go Outdated Show resolved Hide resolved
rpc/ethereum/namespaces/eth/filters/api.go Outdated Show resolved Hide resolved
rpc/ethereum/namespaces/eth/filters/api.go Outdated Show resolved Hide resolved
@fedekunze fedekunze enabled auto-merge (squash) March 24, 2022 07:44
auto-merge was automatically disabled March 24, 2022 07:50

Head branch was pushed to by a user without write access

auto-merge was automatically disabled March 24, 2022 07:50

Head branch was pushed to by a user without write access

@fedekunze fedekunze enabled auto-merge (squash) March 24, 2022 07:53
@fedekunze fedekunze merged commit 70d5294 into evmos:main Mar 24, 2022
yihuang added a commit to yihuang/ethermint that referenced this pull request Mar 24, 2022
evmos#1012)

* Problem: eth_newPendingTransactionFilter don't return correct tx hash

Closes: evmos#1011
Solution:
- use eth tx hash rather than tendermint one

* changelog

* remove copied TODO comment and ignore err result of Notify

* add e2e test

* fix ws client in e2e test

* fix test

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
yihuang added a commit to yihuang/ethermint that referenced this pull request Mar 24, 2022
evmos#1012)

* Problem: eth_newPendingTransactionFilter don't return correct tx hash

Closes: evmos#1011
Solution:
- use eth tx hash rather than tendermint one

* changelog

* remove copied TODO comment and ignore err result of Notify

* add e2e test

* fix ws client in e2e test

* fix test

* Apply suggestions from code review

* Apply suggestions from code review

Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Problem: eth_newPendingTransactionFilter don't return correct tx hash
2 participants