-
Notifications
You must be signed in to change notification settings - Fork 25
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(levm): improve revert behavior and reorganize transact #1231
Merged
JereSalo
merged 8 commits into
levm/fixing_ef_tests_execution
from
levm/reorganize_transact
Nov 22, 2024
Merged
Changes from all commits
Commits
Show all changes
8 commits
Select commit
Hold shift + click to select a range
1abfba8
start restructuring transact and validate_transaction
JereSalo 017201a
make big refactor to transact and implement revert functionality in it
JereSalo 5de8312
change UndefinedState for debugging
JereSalo 1c28664
implement effective gas price calculation for type 2 transactions
JereSalo 6a5d4e8
make operations safe and add limit to gas refunds
JereSalo 17ec67a
make some changes in case of reversion of create
JereSalo 0d97292
fix cippy lint
JereSalo 2b950d4
Merge branch 'levm/fixing_ef_tests_execution' into levm/reorganize_tr…
JereSalo File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
## Transaction Validation | ||
|
||
1. **GASLIMIT_PRICE_PRODUCT_OVERFLOW** -> The product of gas limit and gas price is too high. | ||
2. **INSUFFICIENT_ACCOUNT_FUNDS** -> Sender does not have enough funds to pay for the gas. | ||
3. **INSUFFICIENT_MAX_FEE_PER_GAS** -> The max fee per gas is lower than the base fee per gas. | ||
4. **INITCODE_SIZE_EXCEEDED** -> The size of the initcode is too big. | ||
5. **INTRINSIC_GAS_TOO_LOW** -> The gas limit is lower than the intrinsic gas. | ||
6. **NONCE_IS_MAX** -> The nonce of the sender is at its maximum value. | ||
7. **PRIORITY_GREATER_THAN_MAX_FEE_PER_GAS** -> The priority fee is greater than the max fee per gas. | ||
8. **SENDER_NOT_EOA** -> The sender is not an EOA (it has code). | ||
9. **GAS_ALLOWANCE_EXCEEDED** -> The gas limit is higher than the block gas limit. | ||
10. **INSUFFICIENT_MAX_FEE_PER_BLOB_GAS** -> The max fee per blob gas is lower than the base fee per gas. | ||
11. **TYPE_3_TX_ZERO_BLOBS** -> The transaction has zero blobs. | ||
12. **TYPE_3_TX_INVALID_BLOB_VERSIONED_HASH** -> The blob versioned hash is invalid. | ||
13. **TYPE_3_TX_PRE_FORK** -> The transaction is a pre-cancun transaction. | ||
14. **TYPE_3_TX_BLOB_COUNT_EXCEEDED** -> The blob count is higher than the max allowed. | ||
15. **TYPE_3_TX_CONTRACT_CREATION** -> The type 3 transaction is a contract creation. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
I don't know the difference between this check and the (5), here is assigned when it should not (because previously did not perform the operation).
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.
(we talked about this afterwards)