Skip to content

Commit

Permalink
Add temporary fix to currentDifficulty field. (linting fix).
Browse files Browse the repository at this point in the history
  • Loading branch information
spencer-tb committed Mar 28, 2023
1 parent 001fa3c commit 9acb24b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/statetest/statetest_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,8 @@ state::BlockInfo from_json<state::BlockInfo>(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<std::string>() == "0x0")
if (current_difficulty_it->is_string()
&& current_difficulty_it->get<std::string>() == "0x0")
difficulty = 0x0000000000000000000000000000000000000000000000000000000000000000_bytes32;
else
difficulty = from_json<evmc::bytes32>(*current_difficulty_it);
Expand Down

0 comments on commit 9acb24b

Please sign in to comment.