From 9acb24b1b6cd32c88789d26b13daa7f3e2cfc8ce Mon Sep 17 00:00:00 2001 From: spencer-tb Date: Tue, 28 Mar 2023 11:43:06 -0600 Subject: [PATCH] Add temporary fix to currentDifficulty field. (linting fix). --- test/statetest/statetest_loader.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/test/statetest/statetest_loader.cpp b/test/statetest/statetest_loader.cpp index 449bfed32e..b2a6bc1aac 100644 --- a/test/statetest/statetest_loader.cpp +++ b/test/statetest/statetest_loader.cpp @@ -159,7 +159,8 @@ state::BlockInfo from_json(const json::json& j) else if (current_difficulty_it != j.end()) // Special case to handle "0x0". Required by exec-spec-tests. // TODO: Get rid of it. - if (current_difficulty_it->is_string() && current_difficulty_it->get() == "0x0") + if (current_difficulty_it->is_string() + && current_difficulty_it->get() == "0x0") difficulty = 0x0000000000000000000000000000000000000000000000000000000000000000_bytes32; else difficulty = from_json(*current_difficulty_it);