pull/7/head
yann300 7 years ago
parent cd4706be9c
commit 3b7e033359
  1. 1
      remix-debug/src/solidity-decoder/types/Mapping.js
  2. 1
      remix-debug/src/solidity-decoder/types/util.js
  3. 3
      remix-debug/src/storage/storageViewer.js

@ -13,7 +13,6 @@ class Mapping extends RefType {
async decodeFromStorage (location, storageResolver) {
var corrections = this.valueType.members ? this.valueType.members.map((value) => { return value.storagelocation }) : []
if (!this.initialDecodedState) { // cache the decoded initial storage
var mappingsInitialPreimages
try {

@ -9,6 +9,7 @@ module.exports = {
extractHexByteSlice: extractHexByteSlice,
toBN: toBN,
add: add,
sub: sub,
extractLocation: extractLocation,
removeLocation: removeLocation,
normalizeHex: normalizeHex,

@ -97,7 +97,7 @@ class StorageViewer {
async mappingsLocation (corrections) {
if (!this.currentMappingsLocationPromise) {
this.currentMappingsLocationPromise = new Promise((resolve, reject) => {
this.extractMappingsLocationChanges(this.storageChanges, corrections, (error, mappingsLocationChanges) => {
this.extractMappingsLocationChanges(this.storageChanges, corrections, (error, mappingsLocationChanges) => {
if (error) {
reject(error)
} else {
@ -111,7 +111,6 @@ class StorageViewer {
/**
* retrieve mapping location changes from the storage changes.
* @param {Map} storageChanges
* @param {Array} corrections - used in case the calculated sha3 has been modifyed before SSTORE (notably used for struct in mapping).
*/

Loading…
Cancel
Save