Skip empty entries in memory and storage dump.

This commit is contained in:
chriseth
2019-05-23 12:27:56 +02:00
parent d707a26a90
commit 91312e657b
12 changed files with 28 additions and 126 deletions
+1 -9
View File
@@ -98,15 +98,7 @@ void interpret(string const& _source)
{
}
cout << "Trace:" << endl;
for (auto const& line: interpreter.trace())
cout << " " << line << endl;
cout << "Memory dump:" << endl;
for (size_t i = 0; i < state.memory.size(); i += 0x20)
cout << " " << std::hex << std::setw(4) << i << ": " << toHex(bytesConstRef(state.memory.data() + i, 0x20).toBytes()) << endl;
cout << "Storage dump:" << endl;
for (auto const& slot: state.storage)
cout << " " << slot.first.hex() << ": " << slot.second.hex() << endl;
state.dumpTraceAndState(cout);
}
}