Skip to content

Commit 46a9906

Browse files
committed
few fixes
1 parent b7da3a7 commit 46a9906

File tree

3 files changed

+36
-11
lines changed

3 files changed

+36
-11
lines changed

scripts/build.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,6 @@ extensionsSpecsFiles.forEach(file => {
9595
});
9696

9797
extensionSpecs.push(XErrorGroupsJSON);
98-
console.log(extensionSpecs);
9998

10099
let extensions = [];
101100
let extensionsBase = "src/extensions/components/"
@@ -119,7 +118,6 @@ extensionSpecs.forEach((extensionSpec) => {
119118
}
120119
});
121120
});
122-
console.log(extensionsDef)
123121

124122
const doc = {
125123
openrpc: "1.2.4",

src/eth/submit.yaml

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@
55
required: true
66
schema:
77
$ref: '#/components/schemas/GenericTransaction'
8-
x-error-group:
9-
# Reference the predefined GasErrors
10-
- $ref: '#/components/x-error-group/GasErrors'
8+
x-error-group:
119
- $ref: '#/components/x-error-group/JSONRPCNonStandardErrors'
1210
- $ref: '#/components/x-error-group/JSONRPCStandardErrors'
11+
- $ref: '#/components/x-error-group/GasErrors'
12+
- $ref: '#/components/x-error-group/ExecutionErrors'
1313
# Inline additional errors specific to this method
1414
-
15-
- code: 50002
16-
message: "Insufficient Funds"
17-
data: "The account does not have enough balance to cover gas costs."
18-
- code: 50003
19-
message: "Nonce Too Low"
20-
data: "The transaction nonce is lower than expected."
15+
- code: -31000
16+
message: "Already known transaction"
17+
data: "Transaction is already known to the transaction pool"
18+
- code: -31001
19+
message: "Invalid sender"
20+
data: "Transaction sender is invalid."
2121
result:
2222
name: Transaction hash
2323
schema:
@@ -48,6 +48,19 @@
4848
required: true
4949
schema:
5050
$ref: '#/components/schemas/bytes'
51+
x-error-group:
52+
- $ref: '#/components/x-error-group/JSONRPCNonStandardErrors'
53+
- $ref: '#/components/x-error-group/JSONRPCStandardErrors'
54+
- $ref: '#/components/x-error-group/GasErrors'
55+
- $ref: '#/components/x-error-group/ExecutionErrors'
56+
# Inline additional errors specific to this method
57+
-
58+
- code: -31000
59+
message: "Already known transaction"
60+
data: "Transaction is already known to the transaction pool"
61+
- code: -31001
62+
message: "Invalid sender"
63+
data: "Transaction sender is invalid."
5164
result:
5265
name: Transaction hash
5366
schema:
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
x-error-group:
2+
ExecutionErrors:
3+
- code: -31800
4+
message: "Nonce too low"
5+
data: "Transaction nonce is lower than the sender account's current nonce"
6+
- code: -31801
7+
message: "Nonce too high"
8+
data: "Transaction nonce is higher than the sender account's current nonce"
9+
- code: -31802
10+
message: "Execution reverted"
11+
data: "Execution is reverted by REVERT Opcode"
12+
- code: -31803
13+
message: "Invalid opcode"
14+
data: "An invalid opcode was encountered during execution"

0 commit comments

Comments
 (0)