You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
I occasionally get a geth Subscription Error "missing required field 'topics' for Log".
Indeed, the tx has no topic, example on mainnet tx 0x0af3e4c8f5048b2ace5a036a4f518294267984943527a3abd3ec4483ad494f4d
The problem seems to be in /go-ethereum-substate/core/types/gen_log_json.go which throws when Topics is nil
To Reproduce
Steps to reproduce the behavior:
In go, subscribe to the ethClient like this:
sub, err := cl.SubscribeFilterLogs(
context.Background(),
ethereum.FilterQuery{Topics: [][]common.Hash{}},
logChn)
(it makes no different if you create an empty ethereum.FilterQuery or not.)
Create a tx without Topics which must be mined, then the subscription error happens.
Expected behavior
This should not throw. Topics is optional.
The text was updated successfully, but these errors were encountered:
Describe the bug
I occasionally get a geth Subscription Error "missing required field 'topics' for Log".
Indeed, the tx has no topic, example on mainnet tx 0x0af3e4c8f5048b2ace5a036a4f518294267984943527a3abd3ec4483ad494f4d
The problem seems to be in /go-ethereum-substate/core/types/gen_log_json.go which throws when Topics is nil
To Reproduce
Steps to reproduce the behavior:
In go, subscribe to the ethClient like this:
sub, err := cl.SubscribeFilterLogs(
context.Background(),
ethereum.FilterQuery{Topics: [][]common.Hash{}},
logChn)
(it makes no different if you create an empty ethereum.FilterQuery or not.)
Create a tx without Topics which must be mined, then the subscription error happens.
Expected behavior
This should not throw. Topics is optional.
The text was updated successfully, but these errors were encountered: