diff --git a/types/block.go b/types/block.go index aff02b30b9..662478b7c0 100644 --- a/types/block.go +++ b/types/block.go @@ -1056,7 +1056,7 @@ type Blob struct { // Namespace returns the namespace of this blob encoded as a byte slice. func (b Blob) Namespace() []byte { - return append([]byte{byte(b.NamespaceVersion)}, b.NamespaceID...) + return append([]byte{b.NamespaceVersion}, b.NamespaceID...) } // StringIndented returns an indented string representation of the transactions.