xclud / web3dart

Ethereum library, written in Dart.
https://pub.dev/packages/web3dart
MIT License
170 stars 94 forks source link

add nullable topics in filters #106

Closed kevtechi closed 1 year ago

kevtechi commented 1 year ago

Maybe I'm misunderstanding how I should use this library feature. I need to be able to omit certain filters to filter any on the 2nd param and a specific item on the 3rd.

Therefore it would be better to have:

final List<List<String?>>? topics;

rather than:

final List<List<String>>? topics;

In order to achieve this type of filtering:

[
  "0x0000000000000000000000000000000000000000000000000000000000000000", 
  null, 
  "0x0000000000000000000000000000000000000000000000000000000000000000"
]