Skip to content

Conversation

@ARR4N
Copy link
Collaborator

@ARR4N ARR4N commented Feb 7, 2025

Why this should be merged

Paranoia.

It's possible for a stateful precompile to return ErrOutOfGas without actually depleting the underlying vm.Contract gas tank. In fact, this is quite likely given the way UseGas() bails early with false if there's insufficient gas.

How this works

Implementation of vm.evmCallArgs.run(PrecompiledContract, ...) conditionally sets gas remaining based on the error.

How this was tested

@ARR4N
Copy link
Collaborator Author

ARR4N commented Feb 7, 2025

Redundant

@ARR4N ARR4N closed this Feb 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant