diff --git a/apps/remix-ide-e2e/src/tests/debugger.test.ts b/apps/remix-ide-e2e/src/tests/debugger.test.ts index 5ebf38930c..d28c598da5 100644 --- a/apps/remix-ide-e2e/src/tests/debugger.test.ts +++ b/apps/remix-ide-e2e/src/tests/debugger.test.ts @@ -178,6 +178,7 @@ module.exports = { .getEditorValue((content) => { browser.assert.ok(content.indexOf('if slt(sub(dataEnd, headStart), 32) { revert(0, 0) }') != -1, 'current displayed content is not a generated source') }) + .click('*[data-id="debuggerTransactionStartButton"]') }, 'Should call the debugger api: getTrace': function (browser: NightwatchBrowser) { @@ -194,7 +195,10 @@ module.exports = { .executeScript('remix.exeCurrent()') .pause(3000) .clickLaunchIcon('debugger') - .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n92') + .pause(1000) + .goToVMTraceStep(5) + .pause(1000) + .assert.containsText('*[data-id="stepdetail"]', 'vm trace step:\n5') .end() }, diff --git a/libs/remix-debug/src/solidity-decoder/internalCallTree.js b/libs/remix-debug/src/solidity-decoder/internalCallTree.js index 9053caaf32..4f58adbf5c 100644 --- a/libs/remix-debug/src/solidity-decoder/internalCallTree.js +++ b/libs/remix-debug/src/solidity-decoder/internalCallTree.js @@ -292,7 +292,7 @@ async function includeVariableDeclaration (tree, step, sourceLocation, scopeId, // } // } // input params - if (inputs) { + if (inputs && inputs.parameters) { functionDefinitionAndInputs.inputs = addParams(inputs, tree, scopeId, states, contractObj.name, previousSourceLocation, stack.length, inputs.parameters.length, -1) } // output params diff --git a/package-lock.json b/package-lock.json index 26d5b3827f..ddfb52a068 100644 --- a/package-lock.json +++ b/package-lock.json @@ -28127,6 +28127,7 @@ }, "dezalgo": { "version": "1.0.3", + "resolved": false, "integrity": "sha1-f3Qt4Gb8dIvI24IFad3c5Jvw1FY=", "requires": { "asap": "^2.0.0", @@ -28755,6 +28756,7 @@ }, "normalize-git-url": { "version": "3.0.2", + "resolved": false, "integrity": "sha1-jl8Uvgva7bc+ByADEKpBbCc1D8Q=" }, "normalize-package-data": { @@ -28792,6 +28794,7 @@ }, "npm-install-checks": { "version": "3.0.0", + "resolved": false, "integrity": "sha1-1K7N/VGlPjcjt7L5Oy7ijjB7wNc=", "requires": { "semver": "^2.3.0 || 3.x || 4 || 5" @@ -29138,6 +29141,7 @@ }, "realize-package-specifier": { "version": "3.0.3", + "resolved": false, "integrity": "sha1-0N74gpUrjeP2frpekRmWYScfQfQ=", "requires": { "dezalgo": "^1.0.1", @@ -29674,6 +29678,7 @@ "dependencies": { "unique-slug": { "version": "2.0.0", + "resolved": false, "integrity": "sha1-22Z258fMBimHj/GWCXx4hVrp9Ks=", "requires": { "imurmurhash": "^0.1.4"