Skip to content
This repository was archived by the owner on Nov 6, 2022. It is now read-only.

Conversation

@edfelten
Copy link
Contributor

@edfelten edfelten commented Aug 8, 2021

Create a new transaction result code (16) to indicate that the transaction ran out of gas while executing. Previously ArbOS returned the result code for an ordinary revert (1) in this case.

Fixes #579

@rachel-bousfield rachel-bousfield self-requested a review August 17, 2021 02:42
Copy link
Contributor

@rachel-bousfield rachel-bousfield left a comment

Choose a reason for hiding this comment

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

Looks good to me, merging

} else {
// Application code must have hit an error.
inErrorHandler = false;
let _ = evmCallStack_returnFromCall(
Copy link
Contributor

Choose a reason for hiding this comment

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

Now that evmCallStack_returnFromCall may resolve the error handler, the debug((664, errInfo = 0)); from evmCallStack_callHitError may not occur. This shouldn't matter since we aren't consuming this on the node's side

@rachel-bousfield rachel-bousfield merged commit a86f64f into next Aug 17, 2021
@rachel-bousfield rachel-bousfield deleted the return-code-for-out-of-gas branch August 17, 2021 03:21
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.

3 participants