-
Notifications
You must be signed in to change notification settings - Fork 808
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
Conversation
- support querying a given pointee to retrieve the corresponding pointer
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ 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
|
There was a problem hiding this 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) { |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
Describe your changes and provide context
Testing performed to validate your change