-
Notifications
You must be signed in to change notification settings - Fork 75
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
eth_getCode
to return the redirect bytecode for HTS tokens
#598
eth_getCode
to return the redirect bytecode for HTS tokens
#598
Conversation
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
Codecov ReportBase: 71.39% // Head: 70.85% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #598 +/- ##
==========================================
- Coverage 71.39% 70.85% -0.54%
==========================================
Files 16 16
Lines 1115 1139 +24
Branches 192 195 +3
==========================================
+ Hits 796 807 +11
- Misses 267 280 +13
Partials 52 52
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
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.
LG, missing UT's in mirrorNodeClient.spec.ts
and one suggestion
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
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.
LG
Signed-off-by: georgi-l95 <glazarov95@gmail.com>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
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.
LG
Description:
resolveEntityType
function in mirror node to support token typeseth_getCode
- check for address type, if it's HTS token return redirect bytecode, rest is the same as beforeaddress
totokenId
conversion by usingparseInt(address, 16)
Related issue(s):
Fixes #594
Fixes #583
Notes for reviewer:
Little change in unit tests, as we are making some additional requests and we need to mock them.
Checklist