revert changes

This commit is contained in:
Sahil-4555 2025-09-27 09:14:21 +05:30
parent 9dd1829439
commit 854a45c280

View file

@ -30,7 +30,7 @@ func FromHex(s string) []byte {
if has0xPrefix(s) { if has0xPrefix(s) {
s = s[2:] s = s[2:]
} }
if len(s)&1 == 1 { if len(s)%2 == 1 {
s = "0" + s s = "0" + s
} }
return Hex2Bytes(s) return Hex2Bytes(s)