Skip to content
This repository has been archived by the owner on Jan 9, 2025. It is now read-only.

[KGA-3] [KGA-122] fix: SSJ pow #1579

Merged
merged 1 commit into from
Nov 6, 2024
Merged

[KGA-3] [KGA-122] fix: SSJ pow #1579

merged 1 commit into from
Nov 6, 2024

Conversation

enitrat
Copy link
Collaborator

@enitrat enitrat commented Nov 6, 2024

code-423n4/2024-09-kakarot-findings#65

Fixes pow in SSJ


This change is Reviewable

Copy link

@enitrat enitrat changed the title [KGA-122] fix: SSJ pow [KGA-3] [KGA-122] fix: SSJ pow Nov 6, 2024
Copy link

@@ -367,6 +370,7 @@ mod tests {

#[test]
fn test_wrapping_pow() {
assert(0_u256.wrapping_pow(0) == 1, '0^0 should be 1');
Copy link
Collaborator

@obatirou obatirou Nov 6, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why not using the assert_eq! macro ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No reason I did as the otherlines in the test. It could be moved to use assert ea

@enitrat enitrat merged commit 9a11b08 into main Nov 6, 2024
13 of 14 checks passed
@enitrat enitrat deleted the fix/ssj-pow branch November 6, 2024 11:29
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants