From f3aea5c34312684b7a865f93b56482dd250a1958 Mon Sep 17 00:00:00 2001 From: Ariel Elperin Date: Wed, 20 Sep 2023 21:33:32 +0300 Subject: [PATCH] add string data to CONTRACT_ERROR --- api/starknet_api_openrpc.json | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/api/starknet_api_openrpc.json b/api/starknet_api_openrpc.json index 9494076..fddb2a5 100644 --- a/api/starknet_api_openrpc.json +++ b/api/starknet_api_openrpc.json @@ -3596,7 +3596,19 @@ }, "CONTRACT_ERROR": { "code": 40, - "message": "Contract error" + "message": "Contract error", + "data": { + "type": "object", + "description": "More data about the execution failure", + "properties": { + "revert_error": { + "title": "revert error", + "description": "a string encoding the execution trace up to the point of failure", + "type": "string" + } + }, + "required": "revert_error" + } } } }