accounts/abi: satisfy most of the linter warnings
+ adding missing comments + small cleanups which won't significantly change function body. + unify Method receiver name
This commit is contained in:
committed by
Martin Holst Swende
parent
0ed8b838a9
commit
95461e8b22
@ -120,7 +120,7 @@ func (e Event) singleUnpack(v interface{}, output []byte) error {
|
||||
}
|
||||
|
||||
if e.Inputs[0].Indexed {
|
||||
return fmt.Errorf("abi: attempting to unpack indexed variable into element.")
|
||||
return fmt.Errorf("abi: attempting to unpack indexed variable into element")
|
||||
}
|
||||
|
||||
value := valueOf.Elem()
|
||||
@ -129,8 +129,5 @@ func (e Event) singleUnpack(v interface{}, output []byte) error {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
if err := set(value, reflect.ValueOf(marshalledValue), e.Inputs[0]); err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
return set(value, reflect.ValueOf(marshalledValue), e.Inputs[0])
|
||||
}
|
||||
|
Reference in New Issue
Block a user