-
Notifications
You must be signed in to change notification settings - Fork 53
Conversation
Codecov Report
@@ Coverage Diff @@
## main #817 +/- ##
==========================================
- Coverage 91.72% 91.68% -0.04%
==========================================
Files 53 54 +1
Lines 12421 12428 +7
==========================================
+ Hits 11393 11395 +2
- Misses 1028 1033 +5
|
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 job! One comment: the hash_utils module should return HashErrors not SyscallHandler Errors, the error mapping into SyscallHandlerError should be done after calling the function
Added this translation function in ContractAdressError, is this the right way to go from ContractAddressError to HashError
|
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.
Nice! Could you implement a From<HashError> for SyscallHandlerError
?
If not that's okay too 👍
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.
There are a couple more places where we can change the error type and use the HashError. But I think that it's good enough now. We can revisit this later.
Congrats.
Modified SyscallHandlerError to have a hash error of type HashError
Description
Modify the error to be clearer and give more information about the type of hash error we get.
Checklist