From 558d325bf3dad474392a1c1f6b459a6d8178fb6c Mon Sep 17 00:00:00 2001 From: Simon Dudley Date: Thu, 26 Jan 2023 06:55:02 +0100 Subject: [PATCH] Fix json parsing again Signed-off-by: Simon Dudley --- .../methods/engine/EngineGetPayloadBodiesByHashV1.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineGetPayloadBodiesByHashV1.java b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineGetPayloadBodiesByHashV1.java index 77c0521a325..12411b1d2d6 100644 --- a/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineGetPayloadBodiesByHashV1.java +++ b/ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineGetPayloadBodiesByHashV1.java @@ -58,7 +58,8 @@ public JsonRpcResponse syncResponse(final JsonRpcRequestContext request) { final List blockHashes = Arrays.stream(request.getRequest().getParams()) - .map(Hash.class::cast) + .map(String::valueOf) + .map(Hash::fromHexString) .collect(Collectors.toList()); traceLambda(LOG, "{} parameters: blockHashes {}", () -> getName(), () -> blockHashes);