From 43887768f028ee97fcbe0f3d6fff88e274635ad6 Mon Sep 17 00:00:00 2001 From: yann300 Date: Wed, 21 Dec 2022 10:13:29 +0100 Subject: [PATCH] fix e2e test --- apps/remix-ide-e2e/src/tests/debugger.test.ts | 2 +- libs/remix-simulator/src/VmProxy.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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' }