-
Notifications
You must be signed in to change notification settings - Fork 79
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
EVM: Improve the call tests #1043
Conversation
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 the off by 1s?
actors/evm/tests/call.rs
Outdated
push1 0x00 | ||
push1 0x00 | ||
push1 0x00 # offset | ||
push1 0x01 # dest offset |
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 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.
first byte is the exit code pushed put into memory
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.
^what melanie said -- i can add comments making clear.
actors/evm/tests/call.rs
Outdated
# return | ||
returndatasize | ||
returndatasize | ||
push1 0x01 |
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.
???
# write exit code memory | ||
push1 0x00 # offset | ||
mstore8 | ||
|
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.
@vyzo here
* Don't use the same methodNum as expected return data to avoid confusion * Include the success/failure of the call in the return data * Take methodNum and expected success as parameters for more extensible tests
74d75f1
to
9723d72
Compare
It would likely be worth applying these improvements to the other tests in the file too, but we're sprinting right now.