Skip to content

Commit f77a8f7

Browse files
committed
Removed Data & Updated Message for errors
1 parent bc78032 commit f77a8f7

File tree

6 files changed

+56
-92
lines changed

6 files changed

+56
-92
lines changed
Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,14 @@
11
x-error-group:
22
ExecutionErrors:
33
- code: 1
4-
message: "NONCE_TOO_LOW"
5-
data: "Nonce too low"
4+
message: "Nonce too low"
65
x-error-category: "EXECUTION_ERRORS"
76
- code: 2
8-
message: "NONCE_TOO_HIGH"
9-
data: "Nonce too high"
7+
message: "Nonce too high"
108
x-error-category: "EXECUTION_ERRORS"
119
- code: 3
12-
message: "EXECUTION_REVERTED"
13-
data: "Execution reverted by REVERT Opcode"
10+
message: "Execution reverted by REVERT Opcode"
1411
x-error-category: "EXECUTION_ERRORS"
1512
- code: 4
16-
message: "INVALID_OPCODE"
17-
data: "Invalid opcode"
13+
message: "Invalid opcode"
1814
x-error-category: "EXECUTION_ERRORS"
Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,26 @@
11
x-error-group:
22
GasErrors:
33
- code: 800
4-
message: "GAS_TOO_LOW"
5-
data: "Intrinsic gas too low / Intrinsic gas exceeds gas limit"
4+
message: "Intrinsic gas too low / Intrinsic gas exceeds gas limit"
65
x-error-category: "GAS_ERRORS"
7-
- code: 801
8-
message: "OUT_OF_GAS"
9-
data: "Insufficient gas for floor data gas cost"
6+
- code: 801
7+
message: "Insufficient gas for floor data gas cost"
108
x-error-category: "GAS_ERRORS"
11-
- code: 802
12-
message: "BLOCK_GAS_LIMIT_EXCEEDED"
13-
data: "Tx gas limit exceeds max block gas limit / intrinsic gas exceeds gas limit"
9+
- code: 802
10+
message: "Tx gas limit exceeds max block gas limit / intrinsic gas exceeds gas limit"
1411
x-error-category: "GAS_ERRORS"
15-
- code: 803
16-
message: "TRANSACTION_GAS_LIMIT_EXCEEDED"
17-
data: "Transaction gas limit too high"
18-
- code: 804
19-
message: "GAS_PRICE_TOO_LOW"
20-
data: "Gas price below configured minimum gas price / transaction gas price below minimum"
21-
x-error-category: "GAS_ERRORS"
22-
- code: 805
23-
message: "INSUFFICIENT_FUNDS"
24-
data: "Insufficient funds for gas * price + value / Upfront cost exceeds account balance"
12+
- code: 803
13+
message: "Transaction gas limit too high"
14+
- code: 804
15+
message: "Gas price below configured minimum gas price / transaction gas price below minimum"
2516
x-error-category: "GAS_ERRORS"
26-
- code: 806
27-
message: "TIP_ABOVE_FEE_CAP"
28-
data: "Max priority fee per gas higher than max fee per gas"
17+
- code: 805
18+
message: "Insufficient funds for gas * price + value / Upfront cost exceeds account balance"
2919
x-error-category: "GAS_ERRORS"
30-
- code: 807
31-
message: "FEE_CAP_EXCEEDED"
32-
data: "Tx fee exceeds the configured cap / Transaction fee cap exceeded"
20+
- code: 806
21+
message: "Max priority fee per gas higher than max fee per gas"
22+
x-error-category: "GAS_ERRORS"
23+
- code: 807
24+
message: "Tx fee exceeds the configured cap / Transaction fee cap exceeded"
3325
x-error-category: "GAS_ERRORS"
3426

Lines changed: 7 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,16 @@
11
x-error-group:
22
JSONRPCNonStandardErrors:
33
- code: -32000
4-
message: "Invalid input"
5-
data: "Missing or invalid parameters"
4+
message: "Invalid input"
65
- code: -32001
7-
message: "Resource not found"
8-
data: "Requested resource not found"
6+
message: "Resource not found"
97
- code: -32002
10-
message: "Resource unavailable"
11-
data: "Requested resource not available"
8+
message: "Resource unavailable"
129
- code: -32003
13-
message: "Transaction rejected"
14-
data: "Transaction creation failed"
10+
message: "Transaction rejected"
1511
- code: -32004
16-
message: "Method not supported"
17-
data: "Method is not implemented"
12+
message: "Method not supported"
1813
- code: -32005
19-
message: "Limit exceeded"
20-
data: "Request exceeds defined limit"
14+
message: "Limit exceeded"
2115
- code: -32006
22-
message: "JSON-RPC version not supported"
23-
data: "Version of JSON-RPC protocol is not supported"
16+
message: "JSON-RPC version not supported"
Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,12 @@
11
x-error-group:
22
JSONRPCStandardErrors:
33
- code: -32700
4-
message: "Parse error"
5-
data: "An error occurred on the server while parsing the JSON text"
4+
message: "Parse error"
65
- code: -32600
7-
message: "Invalid request"
8-
data: "The JSON sent is not a valid request object"
6+
message: "Invalid request"
97
- code: -32601
10-
message: "Method not found"
11-
data: "The method does not exist / is not available"
8+
message: "Method not found"
129
- code: -32602
13-
message: "Invalid params"
14-
data: "Invalid method parameter(s)"
10+
message: "Invalid params"
1511
- code: -32603
16-
message: "Internal error"
17-
data: "Internal JSON-RPC error"
12+
message: "Internal error"
Lines changed: 22 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,46 +1,35 @@
11
x-error-group:
22
TxPoolErrors:
3-
- code: 1000
4-
message: "ALREADY_KNOWN"
5-
data: "Transaction is already known to the transaction pool"
3+
- code: 1000
4+
message: "Transaction is already known to the transaction pool"
65
x-error-category: "TXPOOL_ERRORS"
7-
- code: 1001
8-
message: "REPLACEMENT_TRANSACTION_UNDERPRICED"
9-
data: "Replacement transaction is sent without the required price bump"
6+
- code: 1001
7+
message: "Replacement transaction is sent without the required price bump"
108
x-error-category: "TXPOOL_ERRORS"
11-
- code: 1002
12-
message: "OVERSIZED_DATA"
13-
data: "Oversized data: Transaction input data exceeds the allowed limit"
9+
- code: 1002
10+
message: "Oversized data: Transaction input data exceeds the allowed limit"
1411
x-error-category: "TXPOOL_ERRORS"
15-
- code: 1003
16-
message: "TX_NOT_PERMITTED"
17-
data: "Only replay-protected (EIP-155) transactions allowed over RPC"
12+
- code: 1003
13+
message: "Only replay-protected (EIP-155) transactions allowed over RPC"
1814
x-error-category: "TXPOOL_ERRORS"
19-
- code: 1004
20-
message: "TXPOOL_FULL"
21-
data: "Transaction pool is full"
15+
- code: 1004
16+
message: "Transaction pool is full"
2217
x-error-category: "TXPOOL_ERRORS"
23-
- code: 1005
24-
message: "INVALID_RLP_DATA"
25-
data: "Transaction Data contains invalid RLP encoding"
18+
- code: 1005
19+
message: "Transaction Data contains invalid RLP encoding"
2620
x-error-category: "TXPOOL_ERRORS"
27-
- code: 1006
28-
message: "INVALID_SENDER"
29-
data: "Transaction sender is invalid"
21+
- code: 1006
22+
message: "Transaction sender is invalid"
3023
x-error-category: "TXPOOL_ERRORS"
31-
- code: 1007
32-
message: "NEGATIVE_VALUE"
33-
data: "Transaction with negative value"
24+
- code: 1007
25+
message: "Transaction with negative value"
3426
x-error-category: "TXPOOL_ERRORS"
35-
- code: 1008
36-
message: "SENDER_DENYLISTED"
37-
data: "Transaction sender is denylisted"
27+
- code: 1008
28+
message: "Transaction sender is denylisted"
3829
x-error-category: "TXPOOL_ERRORS"
39-
- code: 1009
40-
message: "RECEIVER_DENYLISTED"
41-
data: "Transaction receiver is denylisted"
30+
- code: 1009
31+
message: "Transaction receiver is denylisted"
4232
x-error-category: "TXPOOL_ERRORS"
43-
- code: 1010
44-
message: "CHAIN_ID_MISMATCH"
45-
data: "Transaction chain ID does not match the expected chain ID"
33+
- code: 1010
34+
message: "Transaction chain ID does not match the expected chain ID"
4635
x-error-category: "TXPOOL_ERRORS"
Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
x-error-group:
22
ZKExecutionErrors:
3-
- code: 2000
4-
message: "OUT_OF_COUNTERS"
5-
data: "Not enough step counters to continue the execution"
3+
- code: 2000
4+
message: "Not enough step counters to continue the execution"
65
x-error-category: "ZK_EXECUTION_ERRORS"

0 commit comments

Comments
 (0)