We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7421489 + 37d00a0 commit 8262dafCopy full SHA for 8262daf
internal/common/log.go
@@ -165,6 +165,9 @@ func (l *Log) Decode(eventABI *abi.Event) *DecodedLog {
165
}
166
167
func decodeIndexedArgument(argType abi.Type, topic string) (interface{}, error) {
168
+ if len(topic) < 3 {
169
+ return nil, fmt.Errorf("invalid topic %s", topic)
170
+ }
171
topicBytes := gethCommon.Hex2Bytes(topic[2:]) // Remove "0x" prefix
172
switch argType.T {
173
case abi.AddressTy:
0 commit comments