-
Notifications
You must be signed in to change notification settings - Fork 81
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
feat: implement 0x13 - SGT Opcode #271
Conversation
Snapshot Comparison Report: No changes in gas consumption. |
fn test_exec_sgt() { | ||
// https://github.com/ethereum/go-ethereum/blob/master/core/vm/testdata/testcases_sgt.json | ||
assert_sgt( | ||
0x0000000000000000000000000000000000000000000000000000000000000000, |
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.
it would be nice to replace all 0x000...1
by 0x1
and all 0x000..00
by 0x0
crates/evm/src/tests/test_instructions/test_comparison_operations.cairo
Outdated
Show resolved
Hide resolved
fn assert_sgt(a: u256, b: u256, expected: u256) { | ||
// Given | ||
let mut ctx = setup_execution_context(); | ||
ctx.stack.push(a).unwrap(); |
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.
why unwrap()
here?
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.
copied SLT style already validated in main , but didn't really understand why... should have asked before.
@enitrat @ClementWalter now it should be better ! |
@enitrat everything should be ok |
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Resolves: #8
What is the new behavior?
Implementation of SGT EVM opcode
Does this introduce a breaking change?