sei-protocol / sei-chain

Apache License 2.0
2.67k stars 797 forks source link

Add block number for receipt #1682

Closed yzang2019 closed 1 month ago

yzang2019 commented 1 month ago

Describe your changes and provide context

We need to set BlockNumber field, otherwise x/evm/ante will fail.

Testing performed to validate your change

Added unit test

codecov-commenter commented 1 month ago

Codecov Report

All modified and coverable lines are covered by tests :white_check_mark:

Project coverage is 60.88%. Comparing base (bdb98c8) to head (bf9631e).

Additional details and impacted files [![Impacted file tree graph](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1682/graphs/tree.svg?width=650&height=150&src=pr&token=DG7ZZJ3PVV&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol)](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1682?src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol) ```diff @@ Coverage Diff @@ ## main #1682 +/- ## ========================================== + Coverage 60.59% 60.88% +0.28% ========================================== Files 367 367 Lines 26810 26811 +1 ========================================== + Hits 16245 16323 +78 + Misses 9457 9377 -80 - Partials 1108 1111 +3 ``` | [Files](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1682?dropdown=coverage&src=pr&el=tree&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol) | Coverage Δ | | |---|---|---| | [x/evm/module.go](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1682?src=pr&el=tree&filepath=x%2Fevm%2Fmodule.go&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol#diff-eC9ldm0vbW9kdWxlLmdv) | `56.06% <100.00%> (+0.33%)` | :arrow_up: | ... and [2 files with indirect coverage changes](https://app.codecov.io/gh/sei-protocol/sei-chain/pull/1682/indirect-changes?src=pr&el=tree-more&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=sei-protocol)