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

Implement eth_getPendingTransactions #259

Merged
merged 8 commits into from
Jul 12, 2021
Merged

Conversation

yihuang
Copy link
Contributor

@yihuang yihuang commented Jul 12, 2021

Closes #244

Description

  • also refactored repeatitive tx code.

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)

ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
Comment on lines 879 to 880
e.logger.Debugln("invalid tx")
return nil, fmt.Errorf("invalid tx type: %T", tx)
Copy link
Contributor

Choose a reason for hiding this comment

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

ditto

Copy link
Contributor Author

Choose a reason for hiding this comment

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

fixed

@codecov
Copy link

codecov bot commented Jul 12, 2021

Codecov Report

Merging #259 (40ddb60) into main (8d51a70) will increase coverage by 0.73%.
The diff coverage is 75.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #259      +/-   ##
==========================================
+ Coverage   46.04%   46.77%   +0.73%     
==========================================
  Files          45       45              
  Lines        3175     3183       +8     
==========================================
+ Hits         1462     1489      +27     
+ Misses       1633     1613      -20     
- Partials       80       81       +1     
Impacted Files Coverage Δ
x/evm/types/msg.go 80.19% <ø> (ø)
x/evm/types/utils.go 42.30% <75.00%> (+14.52%) ⬆️
x/evm/types/codec.go 88.23% <0.00%> (+61.76%) ⬆️

@yihuang yihuang requested a review from fedekunze July 12, 2021 11:08
x/evm/types/msg.go Outdated Show resolved Hide resolved
ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
ethereum/rpc/namespaces/eth/api.go Outdated Show resolved Hide resolved
yihuang and others added 4 commits July 12, 2021 20:52
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
Co-authored-by: Federico Kunze Küllmer <31522760+fedekunze@users.noreply.github.com>
tx = builder.GetTx().(sdk.Tx)
msg_, err := evmtypes.UnwrapEthereumMsg(&tx)
require.Nil(t, err)
require.Equal(t, *msg_, msg)
Copy link
Contributor

Choose a reason for hiding this comment

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

this seems to be failing

@fedekunze fedekunze enabled auto-merge (squash) July 12, 2021 15:25
@fedekunze fedekunze merged commit 1a48e09 into evmos:main Jul 12, 2021
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.

Implement eth_getPendingTransactions
2 participants