-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Function calls that returns in a throw in testrpc crashes truffle #65
Comments
@MrChico What can I do to convince you to try out ethereumjs-testrpc? |
Haha, I have actually moved to the js testrpc now. You underestimate your manipulative powers @tcoulter |
I think this one is related, please consider the following example:
It results in a crash on first test, and never gets to the second.
The same suite
is handled properly in mocha though:
|
Hi @lastperson - Can you output more information about the first error message? Unfortunately the solc package likes to gobble all unhandled errors and then rethrow them. What you're seeing in the above error is the point in the code where the error is rethrown; however, you're not including the stack trace that follows it. Can you give me that stack trace? Thanks - that'll help me better understand the issue. |
Hi @tcoulter , thanks for quick reply. The problem is that this is the only output I get. Terminal prompt line appears right after the error word. |
Hey there. I'm going to close this issue because it's so old, and Truffle has been significantly revamped since then. If you're still having issues, don't hesitate to ask in the [Truffle Gitter}(https://gitter.im/ConsenSys/truffle) or file a new ticket. Thanks! |
Merge develop -> master for Truffle 4 release
…f-arguments Use _.assign instead of _.merge
Support unresolved link references in contract bytecode
Here is a screenshot of what happens:
Basically, whenever a function call ends up in a throw, truffle gives an error message. This makes you unable to test that contracts that should return a throw under certain conditions. Happens with testrpc, but not with geth.
The text was updated successfully, but these errors were encountered: