Fix json parsing again

Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
pull/4980/head
Simon Dudley 2 years ago
parent 21398281c3
commit 558d325bf3
  1. 3
      ethereum/api/src/main/java/org/hyperledger/besu/ethereum/api/jsonrpc/internal/methods/engine/EngineGetPayloadBodiesByHashV1.java

@ -58,7 +58,8 @@ public class EngineGetPayloadBodiesByHashV1 extends ExecutionEngineJsonRpcMethod
final List<Hash> 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);

Loading…
Cancel
Save