Skip to content

Commit

Permalink
blockchaintest: Skip printing storage 0 values
Browse files Browse the repository at this point in the history
When dumping the result post state omit storage zero values.
They should be interpreted as deleted from storage.
  • Loading branch information
chfast committed Nov 24, 2023
1 parent 01fbf5e commit 78a3bdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/blockchaintest/blockchaintest_runner.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,10 @@ std::string print_state(const state::State& s)
out << "\tstorage : "
<< "\n";
for (const auto& [s_key, val] : ordered_storage)
out << "\t\t" << s_key << " : " << hex0x(val.current) << "\n";
{
if (val.current) // Skip 0 values.
out << "\t\t" << s_key << " : " << hex0x(val.current) << "\n";
}
}
}

Expand Down

0 comments on commit 78a3bdb

Please sign in to comment.