From 65328932dd4b1a53036c472e073fad01aac8fcec Mon Sep 17 00:00:00 2001 From: Felix Lange Date: Thu, 24 Oct 2024 14:01:05 +0200 Subject: [PATCH] eth: add official revert error code for call methods --- src/eth/execute.yaml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/src/eth/execute.yaml b/src/eth/execute.yaml index 0f7667ae..41a1e6fa 100644 --- a/src/eth/execute.yaml +++ b/src/eth/execute.yaml @@ -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: @@ -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: @@ -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: @@ -51,6 +64,7 @@ result: name: Gas used value: '0x5208' + - name: eth_createAccessList summary: Generates an access list for a transaction. params: @@ -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: