Commit d616f29b authored by yann300's avatar yann300 Committed by GitHub

Merge pull request #573 from ethereum/fixbytedecoding

byte decoding fix
parents 73d9a3a0 d7b1a8a3
...@@ -63,7 +63,7 @@ class ValueType { ...@@ -63,7 +63,7 @@ class ValueType {
decodeFromMemory (offset, memory) { decodeFromMemory (offset, memory) {
var value = memory.substr(2 * offset, 64) var value = memory.substr(2 * offset, 64)
return { return {
value: this.decodeValue(util.extractHexByteSlice(value, this.storageBytes, 0)), value: this.decodeValue(value),
type: this.typeName type: this.typeName
} }
} }
......
...@@ -13,7 +13,7 @@ function formatSelf (key, data) { ...@@ -13,7 +13,7 @@ function formatSelf (key, data) {
if (data.type === 'string') { if (data.type === 'string') {
data.self = JSON.stringify(data.self) data.self = JSON.stringify(data.self)
} }
return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty ? '' : ' ' + data.type}</label></label>` return yo`<label style=${keyStyle}>${key}: <label style=${style}>${data.self}</label><label style='font-style:italic'> ${data.isProperty || !data.type ? '' : ' ' + data.type}</label></label>`
} }
function extractData (item, parent, key) { function extractData (item, parent, key) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment