question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

1: // No source code found. When Trying to Debug Web3 Tx

See original GitHub issue
  • I’ve asked for help in the Truffle Gitter before filing this issue.

Issue

My contract has a state modifying function which I’m able to test successfully by running a JS test. When calling the same function in exactly the same manner from web3, I get a tx which seemingly seems to succeed but it does not fire the expected event not change the state as expected. To troubleshoot, I run truffle debug my-tx-hash but get this message 1: // No source code found. followed by Transaction halted with a RUNTIME ERROR.. I’m able to step through it successfully when debugging the tx from the unit test.

Steps to Reproduce

See above

Expected Behavior

Tx succeeds in firing event and modifying state, or at least let’s me debug.

Actual Results

1: // No source code found. followed by Transaction halted with a RUNTIME ERROR.

Environment

  • Operating System: Mac
  • Ethereum client: Web3
  • Truffle version (truffle version): Truffle (unbundled) (core: 4.0.6) Solidity v0.4.20 (solc-js)
  • node version (node --version): v7.2.1
  • npm version (npm --version): 3.10.9

My code is based on the react-box code. I sign my transaction with Metamask.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:1
  • Comments:8 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
cgeweckecommented, Mar 31, 2018

@fredfortier If you have a chance could you see if 4.1.5 has fixed this? A bunch of support for inter-contract calls has been added in that release.

1reaction
cgeweckecommented, Mar 3, 2018

@fredfortier @alexmedkex I was able to reproduce this as well. Investigating . . .

Read more comments on GitHub >

github_iconTop Results From Across the Web

1: // No source code found. using truffle debug
I've tried running it from the top-level directory, the test folder and the contracts folder - and each time truffle can't find the...
Read more >
ConsenSys/truffle - Gitter
I just updated to Truffle 5.1.16 and my Solidity tests now all fail like this: 1) TestRealMath "before all" hook: prepare suite: Error:...
Read more >
Debugging verified external contracts with Truffle Debugger
- In order to be able to use the debugger and have it find the right source to download for your network, you'll...
Read more >
Network API — Brownie 1.19.2 documentation - Read the Docs
Functionally identical to Account . The only difference is that a LocalAccount is one where the private key was directly inputted, and so...
Read more >
Solidity transaction error when transfer ether - Stack Overflow
The debugger is used to step through a smart contract. You're just doing a simple ether transfer between two addresses.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found