diff --git a/apps/remix-ide-e2e/src/tests/debugger.test.ts b/apps/remix-ide-e2e/src/tests/debugger.test.ts index c659dabc01..72c0ddc716 100644 --- a/apps/remix-ide-e2e/src/tests/debugger.test.ts +++ b/apps/remix-ide-e2e/src/tests/debugger.test.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) { diff --git a/libs/remix-simulator/src/VmProxy.ts b/libs/remix-simulator/src/VmProxy.ts index 8dc3ac7d6c..66bd656bfd 100644 --- a/libs/remix-simulator/src/VmProxy.ts +++ b/libs/remix-simulator/src/VmProxy.ts @@ -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' }