aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ethpub/pub.go4
1 files 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
}