bsc/tests/helper/common.go
2014-10-15 00:41:00 +02:00

12 lines
163 B
Go

package helper
import "github.com/ethereum/eth-go/ethutil"
func FromHex(h string) []byte {
if ethutil.IsHex(h) {
h = h[2:]
}
return ethutil.Hex2Bytes(h)
}