Working on test suite
This commit is contained in:
11
tests/helper/common.go
Normal file
11
tests/helper/common.go
Normal file
@ -0,0 +1,11 @@
|
||||
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)
|
||||
}
|
Reference in New Issue
Block a user