From 761717b355731d3064b934389eae10d4c9c3948f Mon Sep 17 00:00:00 2001 From: Warren He Date: Wed, 12 May 2021 14:36:00 -0700 Subject: [PATCH] go: stringXbytes lint --- client-sdk/go/event.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client-sdk/go/event.go b/client-sdk/go/event.go index 2e56e58519..7f913cb0d8 100644 --- a/client-sdk/go/event.go +++ b/client-sdk/go/event.go @@ -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 }