-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Truffle does not catch ganache error #2512
Comments
Hm, thanks for this. We'll have to dig into it, but we're about to release #2466, which should fix at least the undefined transaction hash. I don't expect it will fix the other issues you describe, but we'll see! |
@gnidan sure thing! will try that version out and let you know. |
@hanstf I am seeing this too but with Geth 1.9.6 (stable). If you move down to a lower Truffle version than 5.0.41 does this go away? |
Couple of triage notes. Not sure why this isn't being caught by the tests here, but this line: truffle/packages/contract/lib/override.js Line 53 in 8fdd56f
is not bound correctly to an event emitter. You can see how that's typically done in the handlers.js. There's also an (unrelated?) problem in truffle/packages/contract/lib/override.js Lines 14 to 26 in 8fdd56f
A better split point is Mea culpa as usual. |
@gnidan Updated to the latest truffle contract 4.0.37 but it still happening I am still receiving this
|
@cgewecke tried the truffle contract v4.0.32 but is shows the same? I was looking at that too, the extractReceipt is checking too general. But what I also don't understand is in testnet, I was getting a js object but then in ganache, I got an js |
@hanstf Thanks for checking the truffle version (Do you mean 5.0.32?) Also are you running ganache-cli with That flag is described as:
|
@cgewecke I am not sure which truffle version was it, I tried it with https://www.npmjs.com/package/@truffle/contract/v/4.0.32 actually that flag does not make any difference. It gave me exactly the same error either way. I also test different function that will revert because of this
after checking my ganache logs, I don't even see any
but it was always resolved in
Also the error from truffle that was catch inside the |
I have submitted my issue in ganache here but seems there is no feedback about it, so I am trying to submit it here since it can be error from the truffle contract.
Issue
truffle contract always resolve ganache error with undefined tx and stack trace as receipt
Steps to Reproduce
I will be getting uncaught error from truffle contract
Expected Behavior
Rejected promiEvent instead of resolved with undefined tx receipt
Actual Results
Environment
truffle version
): 5.0.41node --version
): 10.10.0npm --version
): 6.4.1The text was updated successfully, but these errors were encountered: