mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-06 19:12:19 +00:00
10 lines
192 B
Go
10 lines
192 B
Go
|
package common
|
||
|
|
||
|
import "encoding/hex"
|
||
|
|
||
|
// Hex2Bytes returns the bytes represented by the hexadecimal string str.
|
||
|
func Hex2Bytes(str string) []byte {
|
||
|
h, _ := hex.DecodeString(str)
|
||
|
return h
|
||
|
}
|