@@ -30,9 +30,10 @@ class EthrexExceptionMapper(ExceptionMapper):
30
30
TransactionException .TYPE_4_EMPTY_AUTHORIZATION_LIST : r"(?i)empty authorization list" ,
31
31
TransactionException .SENDER_NOT_EOA : (
32
32
r"reject transactions from senders with deployed code|"
33
- r"Sender account should not have bytecode "
33
+ r"Sender account shouldn't be a contract "
34
34
),
35
- TransactionException .NONCE_MISMATCH_TOO_LOW : r"nonce \d+ too low, expected \d+" ,
35
+ TransactionException .NONCE_MISMATCH_TOO_LOW : r"nonce \d+ too low, expected \d+|"
36
+ r"Nonce mismatch.*" ,
36
37
TransactionException .TYPE_3_TX_MAX_BLOB_GAS_ALLOWANCE_EXCEEDED : (
37
38
r"blob gas used \d+ exceeds maximum allowance \d+"
38
39
),
@@ -47,15 +48,17 @@ class EthrexExceptionMapper(ExceptionMapper):
47
48
r"blob versioned hashes not supported|"
48
49
r"Type 3 transactions are not supported before the Cancun fork"
49
50
),
51
+ # A type 4 Transaction without a recipient won't even reach the EVM, we can't decode it.
50
52
TransactionException .TYPE_4_TX_CONTRACT_CREATION : (
51
- r"unexpected length|Contract creation in type 4 transaction"
53
+ r"unexpected length|Contract creation in type 4 transaction|"
54
+ r"Error decoding field 'to' of type primitive_types::H160: InvalidLength"
52
55
),
53
56
TransactionException .TYPE_4_TX_PRE_FORK : (
54
57
r"eip 7702 transactions present in pre-prague payload|"
55
58
r"Type 4 transactions are not supported before the Prague fork"
56
59
),
57
60
TransactionException .INSUFFICIENT_ACCOUNT_FUNDS : (
58
- r"lack of funds \(\d+\) for max fee \(\d+\)|Insufficient account founds "
61
+ r"lack of funds \(\d+\) for max fee \(\d+\)|Insufficient account funds "
59
62
),
60
63
TransactionException .INTRINSIC_GAS_TOO_LOW : (
61
64
r"gas floor exceeds the gas limit|call gas cost exceeds the gas limit|"
@@ -71,7 +74,8 @@ class EthrexExceptionMapper(ExceptionMapper):
71
74
TransactionException .INITCODE_SIZE_EXCEEDED : (
72
75
r"create initcode size limit|Initcode size exceeded"
73
76
),
74
- BlockException .SYSTEM_CONTRACT_CALL_FAILED : (r"failed to apply .* requests contract call" ),
77
+ BlockException .SYSTEM_CONTRACT_CALL_FAILED : (r"System call failed.*" ),
78
+ BlockException .SYSTEM_CONTRACT_EMPTY : (r"System contract:.* has no code after deployment" ),
75
79
BlockException .INCORRECT_BLOB_GAS_USED : (r"Blob gas used doesn't match value in header" ),
76
80
BlockException .RLP_STRUCTURES_ENCODING : (r"Error decoding field '\D+' of type \w+.*" ),
77
81
BlockException .INCORRECT_EXCESS_BLOB_GAS : (r".* Excess blob gas is incorrect" ),
0 commit comments