feat: add 4844 config and basic checks (#4245)

This commit is contained in:
Matthias Seitz
2023-08-17 18:39:10 +02:00
committed by GitHub
parent a5b777a65f
commit e6f471ddcf
4 changed files with 54 additions and 11 deletions

View File

@@ -20,11 +20,14 @@ pub enum InvalidTransactionError {
#[error("Transaction's chain ID does not match.")]
ChainIdMismatch,
/// The transaction requires EIP-2930 which is not enabled currently.
#[error("EIP-2930 transactions are not valid before Berlin.")]
#[error("EIP-2930 transactions are disabled.")]
Eip2930Disabled,
/// The transaction requires EIP-1559 which is not enabled currently.
#[error("EIP-1559 transactions are not valid before London.")]
#[error("EIP-1559 transactions are disabled.")]
Eip1559Disabled,
/// The transaction requires EIP-4844 which is not enabled currently.
#[error("EIP-4844 transactions are disabled.")]
Eip4844Disabled,
/// Thrown if a transaction is not supported in the current network configuration.
#[error("Transaction type not supported")]
TxTypeNotSupported,