mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 04:36:42 +00:00
Update event.go
This commit is contained in:
parent
5d51208334
commit
9a05fb75c3
1 changed files with 2 additions and 2 deletions
|
|
@ -85,8 +85,8 @@ func NewEvent(name, rawName string, anonymous bool, inputs Arguments) Event {
|
||||||
|
|
||||||
str := fmt.Sprintf("event %v(%v)", rawName, strings.Join(names, ", "))
|
str := fmt.Sprintf("event %v(%v)", rawName, strings.Join(names, ", "))
|
||||||
sig := fmt.Sprintf("%v(%v)", rawName, strings.Join(types, ","))
|
sig := fmt.Sprintf("%v(%v)", rawName, strings.Join(types, ","))
|
||||||
id := common.BytesToHash(crypto.Keccak256([]byte(sig)))
|
id := crypto.Keccak256Hash([]byte(sig))
|
||||||
|
|
||||||
return Event{
|
return Event{
|
||||||
Name: name,
|
Name: name,
|
||||||
RawName: rawName,
|
RawName: rawName,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue