Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"Bad source code" when trying to debug a transation #18

Open
deluca-mike opened this issue Jul 25, 2020 · 0 comments
Open

"Bad source code" when trying to debug a transation #18

deluca-mike opened this issue Jul 25, 2020 · 0 comments

Comments

@deluca-mike
Copy link

deluca-mike commented Jul 25, 2020

I deployed a contract to Ganache (compiled with solc 6.6 without optimization) via Remix, called a function, and tried to debug the transaction from the tab of the same source code (both using solc 6.6), and I am getting a "Bad source code".

Happens on 3.6.0 and latest master. Logs below are from latest master. Running node 8.9.4.

error:
{ message: 'Bad source code',
  stack: 'Error: Bad source code\n    at ContractService.compileContract (/Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/service/service/ContractService.js:54:19)\n    at EVMDisassembler.disassembleSourceCode (/Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/bytecode/EVMDisassembler.js:32:47)\n    at CFGService.buildCFGFromSource (/Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/service/service/CFGService.js:36:42)\n    at DebuggerController.<anonymous> (/Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/service/controller/DebuggerController.js:47:62)\n    at Generator.next (<anonymous>)\n    at /Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/service/controller/DebuggerController.js:19:71\n    at new Promise (<anonymous>)\n    at __awaiter (/Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/service/controller/DebuggerController.js:15:12)\n    at DebuggerController.debug (/Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/api/service/controller/DebuggerController.js:38:16)\n    at /Users/michaeldeluca/Projects/ethereum-graph-debugger/dist/routes.js:146:42\n    at Layer.handle [as handle_request] (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/layer.js:95:5)\n    at next (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/route.js:137:13)\n    at Route.dispatch (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/route.js:112:3)\n    at Layer.handle [as handle_request] (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/layer.js:95:5)\n    at /Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/index.js:281:22\n    at param (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/index.js:354:14)\n    at param (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/index.js:365:14)\n    at Function.process_params (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/index.js:410:3)\n    at next (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/index.js:275:10)\n    at methodOverride (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/method-override/index.js:79:5)\n    at Layer.handle [as handle_request] (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/layer.js:95:5)\n    at trim_prefix (/Users/michaeldeluca/Projects/ethereum-graph-debugger/node_modules/express/lib/router/index.js:317:13)' }
@deluca-mike deluca-mike changed the title "Bad source code" when trying to debug a tyransation "Bad source code" when trying to debug a transation Oct 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant