From 051d3693c6613574806b84402c85c05edf552011 Mon Sep 17 00:00:00 2001 From: lupin012 <58134934+lupin012@users.noreply.github.com> Date: Wed, 24 Apr 2024 18:19:56 +0200 Subject: [PATCH] fix lint --- silkworm/rpc/json/types.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/silkworm/rpc/json/types.cpp b/silkworm/rpc/json/types.cpp index 26d090b74e..d9b1662e16 100644 --- a/silkworm/rpc/json/types.cpp +++ b/silkworm/rpc/json/types.cpp @@ -236,8 +236,7 @@ void to_json(nlohmann::json& json, const BlockHeader& header) { json["parentBeaconBlockRoot"] = nullptr; if (header.withdrawals_root) { json["withdrawalsRoot"] = *header.withdrawals_root; - } - else { + } else { json["withdrawalsRoot"] = nullptr; } }