rpc: use nil topic wildcards instead of ""

release/1.0.1
Péter Szilágyi 10 years ago
parent db615a85ec
commit e252dae499
  1. 2
      rpc/args.go

@ -1061,7 +1061,7 @@ func (args *WhisperFilterArgs) UnmarshalJSON(b []byte) (err error) {
for idx, field := range list {
switch value := field.(type) {
case nil:
topics[idx] = []string{""}
topics[idx] = []string{}
case string:
topics[idx] = []string{value}

Loading…
Cancel
Save