These are chat archives for Nethereum/Nethereum
Hello guys, I am pretty new to this project and community , however @juanfranblanco I believe I have found an issue. It is about events filtering, particularly Event.GetAllChanges with at least one Topic (apart from event signature) resulting in “Invalid filter input for current event, use CreateFilterInput” error. The problem is in EventTopicBuilder, that is actually building not an array for the Topics, but rather an array of arrays, which results in exception being thrown, moreover in invalid Topics array structure for EthGetLogs. (Honestly speaking I can not understand why CreateFilterInput takes array of objects for every Topic as parameter in first place).
So to resolve the issue ( at least as proof of concept, probably this could be resolved in a proper way according to project structure) I made EventTopicBuilder.GetTopics take only one object from GetValueTopic result with index 0. That resulted in properly structured Topics for EthGetLogs, that passed the “validation” in GetAllChanges method and resulted in properly filtered events returned.
And I was wondering if this could be considered a critical issue and could be resolved in nearest future OR I believe I can submit a proper pull request with some input about project structure.