Skip to content

Commit 952d465

Browse files
committed
blockchaintest: Skip printing storage 0 values
When dumping the result post state omit storage zero values. They should be interpreted as deleted from storage.
1 parent c549bd3 commit 952d465

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

test/blockchaintest/blockchaintest_runner.cpp

+4-1
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,10 @@ std::string print_state(const state::State& s)
108108
out << "\tstorage : "
109109
<< "\n";
110110
for (const auto& [s_key, val] : ordered_storage)
111-
out << "\t\t" << s_key << " : " << hex0x(val.current) << "\n";
111+
{
112+
if (val.current) // Skip 0 values.
113+
out << "\t\t" << s_key << " : " << hex0x(val.current) << "\n";
114+
}
112115
}
113116
}
114117

0 commit comments

Comments
 (0)