diff --git a/common/bytes.go b/common/bytes.go index 69318328ae..e2d6ece15a 100644 --- a/common/bytes.go +++ b/common/bytes.go @@ -38,7 +38,7 @@ func FromHex(s string) []byte { } // CopyBytes returns an exact copy of the provided bytes. -func CopyBytes(b []byte) []byte { +func CopyBytes(b []byte) []byte { return bytes.Clone(b) }