Skip to content

Commit

Permalink
go: stringXbytes lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pro-wh committed May 12, 2021
1 parent 33b03f3 commit 761717b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client-sdk/go/event.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ func (ek EventKey) IsEqual(other []byte) bool {
// NewEventKey generates an event tag key from a module name and event code.
func NewEventKey(module string, code uint32) EventKey {
key := make([]byte, len(module)+4)
copy(key[:len(module)], []byte(module))
copy(key[:len(module)], module)
binary.BigEndian.PutUint32(key[len(module):], code)
return key
}

0 comments on commit 761717b

Please sign in to comment.