Working on test suite

This commit is contained in:
obscuren
2014-10-15 00:41:00 +02:00
parent 3d177be73e
commit 266d212094
7 changed files with 228 additions and 0 deletions

11
tests/helper/common.go Normal file
View 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)
}