Skip to content

Commit

Permalink
graphql test
Browse files Browse the repository at this point in the history
Signed-off-by: Matthew Whitehead <matthew1001@gmail.com>
  • Loading branch information
matthew1001 committed Aug 21, 2023
1 parent 21727e8 commit 468ddd8
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,7 @@ public static Stream<Arguments> specs() {
Arguments.of("eth_getBlock_byNumber"),
Arguments.of("eth_getBlock_byNumberInvalid"),
Arguments.of("eth_getBlock_wrongParams"),
Arguments.of("eth_getBlockReceipts_byHash_InvalidHexBytes32Hash"),
Arguments.of("eth_getBlockTransactionCount_byHash"),
Arguments.of("eth_getBlockTransactionCount_byNumber"),
Arguments.of("eth_getCode"),
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"request": "{block (hash : \"c8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6\") {number } }",
"response": {
"errors": [
{
"message": "Validation error (WrongType@[block]) : argument 'hash' with value 'StringValue{value='c8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6'}' is not a valid 'Bytes32' - Bytes32 value 'c8df1f061abb4d0c107b2b1a794ade8780b3120e681f723fe55a7be586d95ba6' is not prefixed with 0x",
"locations": [
{
"line": 1,
"column": 9
}
],
"extensions": {
"classification": "ValidationError"
}
}
]
},
"statusCode": 400
}

0 comments on commit 468ddd8

Please sign in to comment.