Skip to content

Commit

Permalink
add content not found error for localContent calls
Browse files Browse the repository at this point in the history
  • Loading branch information
acolytec3 committed Sep 26, 2024
1 parent 3508500 commit 43d18f4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions jsonrpc/src/content/errors.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ContentNotFoundError": {
"code": 32099,
"message": "content not found"
}
}
2 changes: 1 addition & 1 deletion jsonrpc/src/content/results.json
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@
},
"LocalContentResult": {
"name": "LocalContentResult",
"description": "Returns the hex encoded content value. If the content is not available, returns \"0x\"",
"description": "Returns the hex encoded content value.",
"schema": {
"$ref": "#/components/schemas/hexString"
}
Expand Down
3 changes: 3 additions & 0 deletions jsonrpc/src/methods/beacon.json
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,9 @@
],
"result": {
"$ref": "#/components/contentDescriptors/LocalContentResult"
},
"errors":{
"$ref": "#/components/contentDescriptors/ContentNotFoundError"
}
},
{
Expand Down
3 changes: 3 additions & 0 deletions jsonrpc/src/methods/history.json
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,9 @@
],
"result": {
"$ref": "#/components/contentDescriptors/LocalContentResult"
},
"errors":{
"$ref": "#/components/contentDescriptors/ContentNotFoundError"
}
},
{
Expand Down
3 changes: 3 additions & 0 deletions jsonrpc/src/methods/state.json
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,9 @@
],
"result": {
"$ref": "#/components/contentDescriptors/LocalContentResult"
},
"errors":{
"$ref": "#/components/contentDescriptors/ContentNotFoundError"
}
},
{
Expand Down

0 comments on commit 43d18f4

Please sign in to comment.