-
Notifications
You must be signed in to change notification settings - Fork 79
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
EVM: Pad output of resolve_address #1005
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## next #1005 +/- ##
==========================================
+ Coverage 85.56% 88.43% +2.86%
==========================================
Files 127 127
Lines 24032 23574 -458
==========================================
+ Hits 20564 20847 +283
+ Misses 3468 2727 -741
|
/// Read BE encoded low u64 ID address from a u256 word | ||
/// Looks up and returns the encoded f4 addresses of an ID address, returning empty array if not found | ||
/// Looks up and returns the encoded f4 addresses of an ID address. Empty array if not found or `InvalidInput` input was larger 2^64. |
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.
Is this the final form of the docs? They look a little bit unstructured. Would suggest to:
- Explain what these methods do on a conceptual level.
- Then specify the call layout in a way similar to what I did in FIP-0054.
- Then specify the return value.
- Then specify the errors.
Can fix in a follow-up PR.
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.
Issue that covers this: filecoin-project/ref-fvm#1432
/// returns BE encoded u64 or empty array if nothing found | ||
/// Reads a FIL encoded address. | ||
/// Resolves a FIL encoded address into an ID address. | ||
/// Returns BE encoded u256 (return will always be under 2^64). Empty array if nothing found or `InvalidInput` if length was larger 2^32. |
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.
Since we mix up two forms of padding (right padding and left padding) in the precompiles, it wouldn't hurt to specify which kind of padding we use here (left/natural padding).
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.
will fix in follow up PR to get @emmanuelm41 unblocked ASAP
No description provided.