Skip to content

Commit

Permalink
fix EthGetBlockByNumber logic to pass testcase
Browse files Browse the repository at this point in the history
Signed-off-by: Iryoung Jeong <[email protected]>
  • Loading branch information
iryoung committed Jan 20, 2025
1 parent 36eb5bf commit 5d160fd
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ protected BlockParameter blockParameter(final JsonRpcRequestContext request) {
return request.getRequiredParameter(0, BlockParameter.class);
} catch (JsonRpcParameterException e) {
throw new InvalidJsonRpcParameters(
"Invalid block parameter (index 0)", RpcErrorType.INVALID_BLOCK_PARAMS, e);
"Invalid block parameter (index 0)", RpcErrorType.INVALID_BLOCK_NUMBER_PARAMS, e);
}
}

Expand Down

0 comments on commit 5d160fd

Please sign in to comment.