-
Notifications
You must be signed in to change notification settings - Fork 187
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
Implement keccak256 as builtin method #255
Implement keccak256 as builtin method #255
Conversation
Codecov Report
@@ Coverage Diff @@
## master #255 +/- ##
==========================================
+ Coverage 93.91% 93.99% +0.08%
==========================================
Files 54 54
Lines 3744 3761 +17
==========================================
+ Hits 3516 3535 +19
+ Misses 228 226 -2
Continue to review full report at Codecov.
|
efcbb55
to
65e5530
Compare
e1adfa5
to
b1a5c80
Compare
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.
looks good
@@ -67,8 +71,7 @@ fn move_expression( | |||
from: Location, | |||
to: Location, | |||
) -> Result<yul::Expression, CompileError> { | |||
let typ = | |||
FixedSize::try_from(typ).map_err(|_| CompileError::static_str("invalid attributes"))?; | |||
let typ = to_fixed_size(&typ)?; |
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.
I think we should keep the original line with an expect
instead of map_err
, so we crash in this situation. All the results should be removed in this module.
b1a5c80
to
f5f2afe
Compare
f5f2afe
to
b56c960
Compare
What was wrong?
As discussed in #188. Fe needs to expose the
keccak256
hash function to be usable from user code.How was it fixed?
keccak256
as a global functionbytes[n]
parameterget_keccak256
methodkeccak256
can not be called with arrays of other typeskeccak256
functionTo-Do