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 9acb24b commit 3520bba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/statetest/statetest_loader.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +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 3520bba

Please sign in to comment.