bsc/tests/helper/common.go

12 lines
168 B
Go
Raw Normal View History

2014-10-15 01:41:00 +03:00
package helper
import "github.com/ethereum/go-ethereum/ethutil"
2014-10-15 01:41:00 +03:00
func FromHex(h string) []byte {
if ethutil.IsHex(h) {
h = h[2:]
}
return ethutil.Hex2Bytes(h)
}