mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-07-22 20:56:42 +00:00
revert changes
This commit is contained in:
parent
9dd1829439
commit
854a45c280
1 changed files with 1 additions and 1 deletions
|
|
@ -30,7 +30,7 @@ func FromHex(s string) []byte {
|
|||
if has0xPrefix(s) {
|
||||
s = s[2:]
|
||||
}
|
||||
if len(s)&1 == 1 {
|
||||
if len(s)%2 == 1 {
|
||||
s = "0" + s
|
||||
}
|
||||
return Hex2Bytes(s)
|
||||
|
|
|
|||
Loading…
Reference in a new issue