Commit 2cd2e262 authored by yann300's avatar yann300

better format decoded state

parent c85a49ec
......@@ -358,7 +358,7 @@ function computeOffsets (types, stateDefinitions, contractName, location) {
}
}
}
if (!variable.attributes.constant && storagelocation.offset > 0) {
if (storagelocation.offset > 0) {
storagelocation.slot++
}
return {
......
......@@ -13,7 +13,7 @@ function formatSelf (key, data) {
if (data.type === 'string') {
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}</label></label>`
}
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