Browse Source

Storage keys in order in AllAccounts view.

cl-refactor
Gav Wood 10 years ago
parent
commit
de420f9daf
  1. 6
      alethzero/plugins/blockchain/AllAccounts.cpp

6
alethzero/plugins/blockchain/AllAccounts.cpp

@ -112,8 +112,10 @@ void AllAccounts::on_accounts_currentItemChanged()
try
{
auto storage = ethereum()->storageAt(address);
for (auto const& i: storage)
s << "@" << showbase << hex << main()->prettyU256(i.first) << "&nbsp;&nbsp;&nbsp;&nbsp;" << showbase << hex << main()->prettyU256(i.second) << "<br/>";
u256s keys = keysOf(storage);
sort(keys.begin(), keys.end());
for (auto const& i: keys)
s << "@" << showbase << hex << main()->prettyU256(i) << "&nbsp;&nbsp;&nbsp;&nbsp;" << showbase << hex << main()->prettyU256(storage[i]) << "<br/>";
s << "<h4>Body Code (" << sha3(ethereum()->codeAt(address)).abridged() << ")</h4>" << disassemble(ethereum()->codeAt(address));
s << ETH_HTML_DIV(ETH_HTML_MONO) << toHex(ethereum()->codeAt(address)) << "</div>";
s << "<h4>Creation Addresses (" << ethereum()->countAt(address) << "+)</h4>";

Loading…
Cancel
Save