Update event.go

This commit is contained in:
oxBoni 2025-11-28 22:03:05 +01:00 committed by GitHub
parent 5d51208334
commit 9a05fb75c3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,