diff --git a/common/bytes.go b/common/bytes.go index 0342083a1e..04621b2583 100644 --- a/common/bytes.go +++ b/common/bytes.go @@ -39,6 +39,8 @@ func FromHex(s string) []byte { s = "0" + s } return Hex2Bytes(s) + } else if len(s) == 1 { + return Hex2Bytes("0" + s) } return nil }