-
Notifications
You must be signed in to change notification settings - Fork 82
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 0x14 - EQ Opcode #323
Conversation
let popped = self.stack.pop_n(2)?; | ||
let a = *popped[0]; | ||
let b = *popped[1]; | ||
let result = if a == b { |
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.
you can import use utils::traits::BoolIntoNumeric;
and then do
let result:bool = (a == b).into();
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.
Hi @alextnetto any updates?
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.
Done! @enitrat. Lmk anything more I can do.
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 PR! good job
0x14 - EQ opcode
Pull Request type
Please check the type of change your PR introduces:
What is the current behavior?
Resolves: #9
What is the new behavior?
Does this introduce a breaking change?