We can test events in Truffle by getting the tx object that is returned from the method call and asserting that txResult.logs[0].event exits

3
Daniel Campos
picture loading error handler
67 thought(s)67

Ethereum Developer Masterclass

Key takeaways from Udemy's course 'Ethereum Developer Masterclass: Build Real World Projects'.
Ethereum
Blockchain
Solidity
Truffle
Development
Get