truffle-assertions
truffle-assertions copied to clipboard
Question : also possible to check the index from an event?
What I want to to check that Event-1
is submitted before Event-2
.
truffleAssert.eventEmitted(result, 'Event-1', (ev) => {
return ev.index == 0;
});
truffleAssert.eventEmitted(result, 'Event-2', (ev) => {
return ev.index == 1;
});
Is this possible?
Hi @StefH
This is currently not possible using the library, but it is something that could be implemented. I'll think about how this could be done.
This would be a nice addition in case a transaction emits the same event multiple times.