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:
- Created 6 years ago
- Reactions:1
- Comments:8 (4 by maintainers)
@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.@fredfortier @alexmedkex I was able to reproduce this as well. Investigating . . .