Replies: 1 comment 1 reply
-
When you use "`${ blah }`" you are converting If you don’t need to search for an array of addresses, it might also simplify things to just filter for the address directly |
Beta Was this translation helpful? Give feedback.
-
I'm trying to write an event listener for the deposit function on the WMATIC contract
I can write a general filter which will listen to all the deposit events and the outcome is as expected.
With this listener I get following output when I make a deposit transaction
The problem I'm experience Is when I'm trying to add the DEV_ADDRESS to the deposit filter as following
For some reason the return from the listener is not the same anymore.
With above code I get following output
As you can see, the normal event values have changed and I can't seem to work with [object Object]
How should I work with the new output? is this normal? Is the general way of working catching all the events and filtering post 'catch' like in example one?
Beta Was this translation helpful? Give feedback.
All reactions