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

feat: add CLI and RPC endpoint from Pointee to Pointer mapping #1834

Merged
merged 5 commits into from
Sep 4, 2024

Conversation

blindchaser
Copy link
Contributor

  • support querying a given pointee to retrieve the corresponding pointer

Describe your changes and provide context

Testing performed to validate your change

- support querying a given pointee to retrieve the corresponding pointer
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 60.90%. Comparing base (7e79510) to head (a9d1c62).
Report is 1 commits behind head on main.

Additional details and impacted files

Impacted file tree graph

@@            Coverage Diff             @@
##             main    #1834      +/-   ##
==========================================
+ Coverage   60.57%   60.90%   +0.33%     
==========================================
  Files         259      259              
  Lines       22752    22824      +72     
==========================================
+ Hits        13783    13902     +119     
+ Misses       7987     7936      -51     
- Partials      982      986       +4     
Files with missing lines Coverage Δ
x/evm/keeper/grpc_query.go 54.05% <100.00%> (+17.01%) ⬆️
x/evm/keeper/pointer.go 86.45% <100.00%> (+2.70%) ⬆️

... and 3 files with indirect coverage changes

Copy link
Collaborator

@codchen codchen left a comment

Choose a reason for hiding this comment

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

overall lgtm. Let's add some tests in grpc_query_test.go

@@ -47,3 +47,47 @@ func TestQueryPointer(t *testing.T) {
require.Nil(t, err)
require.Equal(t, types.QueryPointerResponse{Pointer: seiAddr5.String(), Version: uint32(erc721.CurrentVersion), Exists: true}, *res)
}

func TestQueryPointee(t *testing.T) {
Copy link
Contributor

Choose a reason for hiding this comment

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

can we also test for invalid / not registered yet?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

good point will add it

@blindchaser blindchaser merged commit c58e08e into main Sep 4, 2024
49 checks passed
@blindchaser blindchaser deleted the yiren/SEI-8029-pointee branch September 4, 2024 13:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants