I’m building a daepp and currently I’m stuck on trying to test my Events in the js sdk.
my Event is something like this:
datatype event = Withdraw(indexed bytes(32), indexed address, indexed address, string) | ...
And I’m emitting it as follows:
Chain.event(Withdraw(id, state.contracts[id].sender, state.contracts[id].receiver, bundle_string ))
I need to get all of that info once the event has been fired, in my js sdk file.
How can I catch the event though? I just need a simple example.
Thanks in advance