Closed kallolborah closed 1 year ago
Are these events emitted by the contract that you called a function on or was it emitted in a different contract that was called somewhere in the call stack? Could you share a little bit more of the test code, e.g. where you assign tx
?
This may sound silly but I am unable to assign an indexed event parameter in a variable.
Let’s say, we have :
How do we assign ev.param to result ? When I assign it inside the scope of eventEmitted, I get an error stating ‘can’t convert undefined or null to object’. But I also see that the event is emitted in truffle test log.
Another thing I notice is that the truffle test log also prints ‘can’t decode event’ - is getting the ‘can’t assign null to object’ related to this ?
I am using TruffleSuite 5x.