fixGetTrace
yann300 4 years ago
parent 2f103112c0
commit 1914f6a4b3
  1. 6
      apps/remix-ide-e2e/src/tests/debugger.test.ts
  2. 2
      libs/remix-debug/src/solidity-decoder/internalCallTree.js
  3. 5
      package-lock.json

@ -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()
},

@ -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

5
package-lock.json generated

@ -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"

Loading…
Cancel
Save