mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-27 22:28:21 +00:00
12 lines
165 B
Go
12 lines
165 B
Go
package helper
|
|
|
|
import "github.com/ethereum/go-ethereum/common"
|
|
|
|
func FromHex(h string) []byte {
|
|
if common.IsHex(h) {
|
|
h = h[2:]
|
|
}
|
|
|
|
return common.Hex2Bytes(h)
|
|
}
|