rkalis / truffle-assertions

🛠 Assertions and utilities for testing Ethereum smart contracts with Truffle unit tests
https://kalis.me/check-events-solidity-smart-contract-test-truffle/
MIT License
154 stars 20 forks source link

createTransactionResult not working with Truffle v5 #5

Closed ei08047 closed 6 years ago

ei08047 commented 6 years ago

web3 : 1.0.0-beta.36 truffle : 5.0@next ganache


createTransactionResult TypeError: allEvents.get is not a function


tried allEvents.on("data", data =>{} ) but could not catch Event launched from constructor..

rkalis commented 6 years ago

Hi @ei08047

Thanks for opening this issue. Could you provide the parameters you are passing to the parameter. If it is possible, could you also add some code snippets of the full context where you are calling the function. That way I can better see what is happening.

rkalis commented 6 years ago

@ei08047 @andrewgordstewart Thanks for providing more context to this problem.

I published a new version of truffle-assertions with support for both web3 0.x / Truffle v4 and web3 1.x / Truffle v5. The issue should be fixed, but let me know if you still experience issues with this.

Additionally, I am working on a 1.0 release for truffle-assertions, which will only officially support the new web3 1.x / Truffle v5. Version 0.x of truffle-assertions will remain available for projects using web3 0.x / Truffle v4.