mirror of
https://gitlab.com/pulsechaincom/go-pulse.git
synced 2024-12-25 12:57:17 +00:00
12 lines
163 B
Go
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)
|
||
|
}
|