aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helper/common.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-10-15 06:41:00 +0800
committerobscuren <geffobscura@gmail.com>2014-10-15 06:41:00 +0800
commit266d21209478bdb8c89e1ffb95d7f0de34635968 (patch)
treeab5075cda6492eee554ad234e4c36734767d2534 /tests/helper/common.go
parent3d177be73e127b08a52988fde308eed29eac4699 (diff)
downloaddexon-266d21209478bdb8c89e1ffb95d7f0de34635968.tar
dexon-266d21209478bdb8c89e1ffb95d7f0de34635968.tar.gz
dexon-266d21209478bdb8c89e1ffb95d7f0de34635968.tar.bz2
dexon-266d21209478bdb8c89e1ffb95d7f0de34635968.tar.lz
dexon-266d21209478bdb8c89e1ffb95d7f0de34635968.tar.xz
dexon-266d21209478bdb8c89e1ffb95d7f0de34635968.tar.zst
dexon-266d21209478bdb8c89e1ffb95d7f0de34635968.zip
Working on test suite
Diffstat (limited to 'tests/helper/common.go')
-rw-r--r--tests/helper/common.go11
1 files changed, 11 insertions, 0 deletions
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)
+}