Fixed storage. Closes #516

This commit is contained in:
obscuren
2015-03-26 00:42:35 +01:00
parent 505f1fbcbb
commit 7e4c488717
2 changed files with 3 additions and 3 deletions

View File

@ -456,7 +456,7 @@ func (self *XEth) EachStorage(addr string) string {
object := self.State().SafeGet(addr)
it := object.Trie().Iterator()
for it.Next() {
values = append(values, KeyVal{common.ToHex(it.Key), common.ToHex(it.Value)})
values = append(values, KeyVal{common.ToHex(object.Trie().GetKey(it.Key)), common.ToHex(it.Value)})
}
valuesJson, err := json.Marshal(values)