-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Uncaught TypeError: Cannot read property 'constructor' of undefined #494
Comments
Naming the event parameter in solidity solved this issue for us. Try replacing |
Interesting, thank you, I will try it!
|
Just ran into this. This is a very odd bug. Is not naming event params technically a bad pattern in Solidity code? |
Had this problem as well - I share Mike's question, what's the pressing need to name event attributes? I'll assume it's the right design decision going forward but I didn't know that. |
Event parameters should be named: trufflesuite/truffle#494 (comment)
Event parameters should be named: trufflesuite/truffle#494 (comment)
Event parameters should be named: trufflesuite/truffle#494 (comment)
Event parameters should be named: trufflesuite/truffle#494 (comment)
Event parameters should be named: trufflesuite/truffle#494 (comment)
Event parameters should be named: trufflesuite/truffle#494 (comment)
I ran into this problem also. I defined an event and did not name the address parameter, which resulted in |
Indeed, same issue for me. I like to use |
Adding the name worked for me too. |
I confirm i can reproduce the same error |
Another confirmation for the pile -- saw the same bug, fixed it by naming the event params. |
Thank you for raising this issue! It has been automatically marked as stale because it has not had recent activity. It will be closed in 7 days if no further activity occurs. If you would like to keep this issue open, please respond with information about the current state of this problem. |
There has been no new activity on this issue since it was marked as stale 7 days ago, so it is being automatically closed. If you'd like help with this or a different problem, please open a new issue. Thanks! |
Same issue here |
@l-henri check at the comment above |
Issue
Comparing a bool from a Structure return error when combined with an Event.
when running Truffle test
Steps to Reproduce
Contract
Test:
Expected Behavior
Return True or False when the Structure.bool is true or false.
Actual Results
When using Option 1, the bug happens;
When using Option 2, it works fine;
Environment
The text was updated successfully, but these errors were encountered: