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

Problem: No test on the transaction receipt api #678

Merged
merged 6 commits into from
Oct 20, 2021

Conversation

yihuang
Copy link
Contributor

@yihuang yihuang commented Oct 15, 2021

Closes: #582

  • add receipt rpc test for erc20 transfer logs

Description


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)

@codecov
Copy link

codecov bot commented Oct 15, 2021

Codecov Report

Merging #678 (84e880a) into main (c644dd6) will decrease coverage by 0.16%.
The diff coverage is 30.55%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #678      +/-   ##
==========================================
- Coverage   57.00%   56.83%   -0.17%     
==========================================
  Files          63       64       +1     
  Lines        5566     5602      +36     
==========================================
+ Hits         3173     3184      +11     
- Misses       2232     2251      +19     
- Partials      161      167       +6     
Impacted Files Coverage Δ
x/evm/types/compiled_contract.go 30.55% <30.55%> (ø)

)

// HexString is a byte array that serializes to hex
type HexString []byte
Copy link
Contributor

Choose a reason for hiding this comment

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

q: why not use the go-ethereum type?

Copy link
Contributor Author

@yihuang yihuang Oct 16, 2021

Choose a reason for hiding this comment

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

go-ethereum version has the ‘0x’ prefix automatically, but the solc generated json don’t have that.

@@ -17,6 +17,9 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2.3.4
- uses: actions/setup-go@v2
with:
go-version: 1.17
Copy link
Contributor Author

Choose a reason for hiding this comment

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

otherwise, the default go compiler in CI fails to build.

@fedekunze
Copy link
Contributor

seems that test-solidity timeouts

@yihuang
Copy link
Contributor Author

yihuang commented Oct 20, 2021

seems that test-solidity timeouts

fixed now.

@yihuang yihuang closed this Oct 20, 2021
@yihuang yihuang reopened this Oct 20, 2021
@fedekunze fedekunze merged commit 1000461 into evmos:main Oct 20, 2021
@yihuang yihuang deleted the test_rpc_receipt branch October 21, 2021 00:56
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.

No test on the transaction receipt api
2 participants