fix e2e test

pull/5370/head
yann300 2 years ago committed by Aniket
parent 825f4665fb
commit 43887768f0
  1. 2
      apps/remix-ide-e2e/src/tests/debugger.test.ts
  2. 2
      libs/remix-simulator/src/VmProxy.ts

@ -206,7 +206,7 @@ module.exports = {
.addFile('test_jsGetTrace.js', { content: jsGetTrace })
.executeScriptInTerminal('remix.exeCurrent()')
.pause(3000)
.waitForElementContainsText('*[data-id="terminalJournal"]', '{"gas":"0x575f","return":"0x0000000000000000000000000000000000000000000000000000000000000000","structLogs":', 60000)
.waitForElementContainsText('*[data-id="terminalJournal"]', '{"gas":"0x575f","return":"0x","structLogs":', 60000)
},
// depends on Should debug using generated sources
'Should call the debugger api: debug #group4': function (browser: NightwatchBrowser) {

@ -191,7 +191,7 @@ export class VmProxy {
this.vmTraces[this.processingHash].return = toChecksumAddress(address)
this.txsReceipt[this.processingHash].contractAddress = toChecksumAddress(address)
} else if (data.execResult.returnValue) {
this.vmTraces[this.processingHash].return = data.execResult.returnValue
this.vmTraces[this.processingHash].return = '0x' + data.execResult.returnValue.toString('hex')
} else {
this.vmTraces[this.processingHash].return = '0x'
}

Loading…
Cancel
Save