erigon-pulse/erigon-lib/common/hextobytes.go

10 lines
192 B
Go
Raw Permalink Normal View History

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
}