better format decoded state

pull/7/head
yann300 7 years ago
parent c85a49ecab
commit 2cd2e2629c
  1. 2
      src/solidity/decodeInfo.js
  2. 2
      src/ui/SolidityTypeFormatter.js

@ -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) {

Loading…
Cancel
Save