From 5d160fde473b21aeb7dcfde1d09185a46d50c213 Mon Sep 17 00:00:00 2001 From: Iryoung Jeong Date: Fri, 17 Jan 2025 17:52:34 +0900 Subject: [PATCH] fix EthGetBlockByNumber logic to pass testcase Signed-off-by: Iryoung Jeong --- .../api/jsonrpc/internal/methods/EthGetBlockByNumber.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthGetBlockByNumber.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthGetBlockByNumber.java index 0a26a24ee38..761870ddd12 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthGetBlockByNumber.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/EthGetBlockByNumber.java @@ -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); } }