From 78cb04cca3daafa178558a3dec5f4814f824dc95 Mon Sep 17 00:00:00 2001
From: obscuren <geffobscura@gmail.com>
Date: Mon, 5 May 2014 15:51:43 +0200
Subject: [PATCH] wrong string

---
 ethpub/pub.go | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/ethpub/pub.go b/ethpub/pub.go
index 4ec9877b2..5e7792a9f 100644
--- a/ethpub/pub.go
+++ b/ethpub/pub.go
@@ -106,9 +106,9 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, in
 		var initScript, mainScript []byte
 		var err error
 		if ethutil.IsHex(initStr) {
-			initScript = ethutil.FromHex(initStr)
+			initScript = ethutil.FromHex(initStr[2:])
 		} else {
-			initScript, err = ethutil.Compile(initStr[2:])
+			initScript, err = ethutil.Compile(initStr)
 			if err != nil {
 				return nil, err
 			}
-- 
GitLab