266d21209
69baa465e
1 2
3
4 5 6 7 8 9 10 11
package helper import "github.com/ethereum/go-ethereum/ethutil" func FromHex(h string) []byte { if ethutil.IsHex(h) { h = h[2:] } return ethutil.Hex2Bytes(h) }