use storageViewer in fullstorageChanges.js

pull/7/head
yann300 8 years ago
parent e1aef3c87d
commit 519b7d03d8
  1. 7
      src/ui/FullStoragesChanges.js

@ -1,5 +1,6 @@
'use strict' 'use strict'
var DropdownPanel = require('./DropdownPanel') var DropdownPanel = require('./DropdownPanel')
var StorageViewer = require('../storage/storageViewer')
var yo = require('yo-yo') var yo = require('yo-yo')
function FullStoragesChanges (_parent, _traceManager, _storageResolver) { function FullStoragesChanges (_parent, _traceManager, _storageResolver) {
@ -47,7 +48,11 @@ FullStoragesChanges.prototype.init = function () {
var storageJSON = {} var storageJSON = {}
for (var k in self.addresses) { for (var k in self.addresses) {
var address = self.addresses[k] var address = self.addresses[k]
self.storageResolver.storageRange(function (error, result) { var storageViewer = new StorageViewer({
stepIndex: self.parent.currentStepIndex,
tx: self.parent.tx
}, self.storageResolver)
storageViewer.storageRange(function (error, result) {
if (!error) { if (!error) {
storageJSON[address] = result storageJSON[address] = result
self.basicPanel.update(storageJSON) self.basicPanel.update(storageJSON)

Loading…
Cancel
Save