From 266d21209478bdb8c89e1ffb95d7f0de34635968 Mon Sep 17 00:00:00 2001 From: obscuren Date: Wed, 15 Oct 2014 00:41:00 +0200 Subject: Working on test suite --- tests/helper/common.go | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 tests/helper/common.go (limited to 'tests/helper/common.go') diff --git a/tests/helper/common.go b/tests/helper/common.go new file mode 100644 index 000000000..3d539ebb0 --- /dev/null +++ b/tests/helper/common.go @@ -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) +} -- cgit v1.2.3