abi: Events always return a tuple

This commit is contained in:
Fynn 2018-02-08 13:43:55 +01:00
parent 1a4e68721a
commit 93aea68c60
No known key found for this signature in database
GPG key ID: 50A23814D8B3FC8E

View file

@ -86,7 +86,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) {
}
return method.Outputs.Unpack(v, output)
} else if event, ok := abi.Events[name]; ok {
return event.Inputs.Unpack(v, output)
return event.Inputs.unpackTuple(v, output)
}
return fmt.Errorf("abi: could not locate named method or event")
}