Skip to content
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

Chore: Refactore EVM ExitFatal reason #52

Merged
merged 1 commit into from
Jul 17, 2024
Merged

Conversation

mrLSD
Copy link
Member

@mrLSD mrLSD commented Jul 5, 2024

Description

Refactored EVM ExitFatal reason for only Fatal cases.
➡️ Moved ExitFatal::UsizeOverflow to ExitError::UsizeOverflow as it's not Fatal case for EVM exit.

Compatability

◀️ Please NOTE that it can break compatibility, as was changed EVM ExitReason.

@aleksuss aleksuss requested a review from birchmd July 5, 2024 11:54
@mrLSD mrLSD merged commit f3bf275 into master Jul 17, 2024
6 checks passed
@mrLSD mrLSD deleted the feat/refactor-exit-fatal branch July 17, 2024 07:32
github-merge-queue bot pushed a commit to aurora-is-near/aurora-engine that referenced this pull request Aug 27, 2024
### Description

To be fully compatible with EVM, we should:
:arrow_right:  Success| Revert
:arrow_right:  ExitError - Execution errors should charge gas from users
:arrow_right:  ExitFatal - shouldn't charge user gas
:arrow_right:  Transactions validation errors should not charge user gas

This PR changed the logic for EVM exit reason gas charge for users,
which includes EVM execution errors gas charge. Previously transaction
just panicked, and user's gas was not charged.

#### EVM
Related to EVM changes:  aurora-is-near/sputnikvm/pull/52

---------

Co-authored-by: Oleksandr Anyshchenko <oleksandr.anyshchenko@aurora.dev>
aleksuss added a commit to aurora-is-near/aurora-engine that referenced this pull request Oct 10, 2024
### Description

To be fully compatible with EVM, we should:
:arrow_right:  Success| Revert
:arrow_right:  ExitError - Execution errors should charge gas from users
:arrow_right:  ExitFatal - shouldn't charge user gas
:arrow_right:  Transactions validation errors should not charge user gas

This PR changed the logic for EVM exit reason gas charge for users,
which includes EVM execution errors gas charge. Previously transaction
just panicked, and user's gas was not charged.

#### EVM
Related to EVM changes:  aurora-is-near/sputnikvm/pull/52

---------

Co-authored-by: Oleksandr Anyshchenko <oleksandr.anyshchenko@aurora.dev>
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.

3 participants