Skip to content

Commit

Permalink
Fix json parsing again
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Dudley <simon.dudley@consensys.net>
  • Loading branch information
siladu committed Jan 26, 2023
1 parent 2139828 commit 558d325
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ public JsonRpcResponse syncResponse(final JsonRpcRequestContext request) {

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);
Expand Down

0 comments on commit 558d325

Please sign in to comment.