diff --git a/src/app/debugger/remix-debugger/src/ui/StackPanel.js b/src/app/debugger/remix-debugger/src/ui/StackPanel.js index c07aa01094..de768dc616 100644 --- a/src/app/debugger/remix-debugger/src/ui/StackPanel.js +++ b/src/app/debugger/remix-debugger/src/ui/StackPanel.js @@ -1,7 +1,5 @@ 'use strict' var DropdownPanel = require('./DropdownPanel') -var remixLib = require('remix-lib') -var ui = remixLib.helpers.ui var yo = require('yo-yo') function StackPanel (_parent, _traceManager) { @@ -26,19 +24,10 @@ StackPanel.prototype.init = function () { self.basicPanel.update({}) console.log(error) } else if (self.parent.currentStepIndex === index) { - self.basicPanel.update(self.format(stack)) + self.basicPanel.update(stack) } }) }) } -StackPanel.prototype.format = function (stack) { - var ret = [] - stack.map(function (item, i) { - var hex = ui.normalizeHex(item) - ret.push(hex) - }) - return ret -} - module.exports = StackPanel diff --git a/test-browser-debugger/test/vmdebugger.js b/test-browser-debugger/test/vmdebugger.js index f84555a0f3..76cb2c0212 100644 --- a/test-browser-debugger/test/vmdebugger.js +++ b/test-browser-debugger/test/vmdebugger.js @@ -74,7 +74,7 @@ function panels (browser) { .setValue('#txinput', '0x20ef65b8b186ca942fcccd634f37074dde49b541c27994fc7596740ef44cfd51') .click('#load') .multipleClick('#intoforward', 63) - .assertStack(['0:0x', '1:0x60', '2:0x65', '3:0x38', '4:0x55', '5:0x60fe47b1']) + .assertStack(['0:0x00', '1:0x60', '2:0x65', '3:0x38', '4:0x55', '5:0x60fe47b1']) .assertStorageChanges(['0x290decd9548b62a8d60345a988386fc84ba6bc95484008f6362f93160ef3e563:Objectkey:0x00value:0x38']) .assertCallData(['0:0x60fe47b10000000000000000000000000000000000000000000000000000000000000038']) .assertCallStack(['0:0x0d3a18d64dfe4f927832ab58d6451cecc4e517c5'])