Moved ethutil => common
This commit is contained in:
@ -1,11 +1,11 @@
|
||||
package helper
|
||||
|
||||
import "github.com/ethereum/go-ethereum/ethutil"
|
||||
import "github.com/ethereum/go-ethereum/common"
|
||||
|
||||
func FromHex(h string) []byte {
|
||||
if ethutil.IsHex(h) {
|
||||
if common.IsHex(h) {
|
||||
h = h[2:]
|
||||
}
|
||||
|
||||
return ethutil.Hex2Bytes(h)
|
||||
return common.Hex2Bytes(h)
|
||||
}
|
||||
|
Reference in New Issue
Block a user