diff --git a/pkg/types/bytes.go b/pkg/types/bytes.go index ede540c..8acd0ac 100644 --- a/pkg/types/bytes.go +++ b/pkg/types/bytes.go @@ -12,6 +12,10 @@ type Bytes []byte // String Converts to hex string func (b Bytes) String() string { + if len(b) == 0 { + return "" + } + return fmt.Sprintf("0x%s", hex.EncodeToString(b)) }