This commit is contained in:
Philip Monk 2017-06-08 08:17:14 +00:00 committed by GitHub
commit b3903137ac

View file

@ -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
}