Skip to content

Commit

Permalink
eth: add official revert error code for call methods
Browse files Browse the repository at this point in the history
  • Loading branch information
fjl committed Oct 24, 2024
1 parent 4140e52 commit 6532893
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/eth/execute.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,12 @@
name: Return data
schema:
$ref: '#/components/schemas/bytes'
errors:
- code: 3
message: "execution reverted"
data:
title: "raw EVM revert data"
$ref: "#/components/schemas/bytes"
examples:
- name: eth_call example
params:
Expand All @@ -25,6 +31,7 @@
result:
name: Return data
value: '0x'

- name: eth_estimateGas
summary: Generates and returns an estimate of how much gas is necessary to allow the transaction to complete.
params:
Expand All @@ -40,6 +47,12 @@
name: Gas used
schema:
$ref: '#/components/schemas/uint'
errors:
- code: 3
message: "execution reverted"
data:
title: "raw EVM revert data"
$ref: "#/components/schemas/bytes"
examples:
- name: eth_estimateGas example
params:
Expand All @@ -51,6 +64,7 @@
result:
name: Gas used
value: '0x5208'

- name: eth_createAccessList
summary: Generates an access list for a transaction.
params:
Expand Down Expand Up @@ -78,6 +92,12 @@
gasUsed:
title: Gas used
$ref: '#/components/schemas/uint'
errors:
- code: 3
message: "execution reverted"
data:
title: "raw EVM revert data"
$ref: "#/components/schemas/bytes"
examples:
- name: eth_createAccessList example
params:
Expand Down

0 comments on commit 6532893

Please sign in to comment.