From 49fef97af39843d7dee8c96e61280cf1a95197c2 Mon Sep 17 00:00:00 2001 From: amanusk Date: Wed, 30 Oct 2024 13:58:09 +0200 Subject: [PATCH 1/2] Add BLOCK_NOT_FOUND error for block_id in subscriptions --- api/starknet_ws_api.json | 3 +++ 1 file changed, 3 insertions(+) diff --git a/api/starknet_ws_api.json b/api/starknet_ws_api.json index fb93e23..e1a270e 100644 --- a/api/starknet_ws_api.json +++ b/api/starknet_ws_api.json @@ -29,6 +29,9 @@ "errors": [ { "$ref": "#/components/errors/TOO_MANY_BLOCKS_BACK" + }, + { + "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_NOT_FOUND" } ] }, From 39650ec58692b902d71d2640dc8780c66da46e4e Mon Sep 17 00:00:00 2001 From: amanusk Date: Wed, 30 Oct 2024 14:01:28 +0200 Subject: [PATCH 2/2] add BLOCK_NOT_FOUND error everywhere it is applicalbe --- api/starknet_ws_api.json | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/api/starknet_ws_api.json b/api/starknet_ws_api.json index e1a270e..109fb1e 100644 --- a/api/starknet_ws_api.json +++ b/api/starknet_ws_api.json @@ -98,6 +98,9 @@ }, { "$ref": "#/components/errors/TOO_MANY_BLOCKS_BACK" + }, + { + "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_NOT_FOUND" } ] }, @@ -152,6 +155,9 @@ "errors": [ { "$ref": "#/components/errors/TOO_MANY_BLOCKS_BACK" + }, + { + "$ref": "./api/starknet_api_openrpc.json#/components/schemas/BLOCK_NOT_FOUND" } ] },