mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-17 17:33:47 +00:00
abi: Events always return a tuple
This commit is contained in:
parent
1a4e68721a
commit
93aea68c60
1 changed files with 1 additions and 1 deletions
|
|
@ -86,7 +86,7 @@ func (abi ABI) Unpack(v interface{}, name string, output []byte) (err error) {
|
||||||
}
|
}
|
||||||
return method.Outputs.Unpack(v, output)
|
return method.Outputs.Unpack(v, output)
|
||||||
} else if event, ok := abi.Events[name]; ok {
|
} 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")
|
return fmt.Errorf("abi: could not locate named method or event")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue