diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-05 21:51:43 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-05 21:51:43 +0800 |
commit | 78cb04cca3daafa178558a3dec5f4814f824dc95 (patch) | |
tree | c2a7accfc93d182010481d0b253e4f5aa6bebc19 /ethpub | |
parent | 14a6e6a9cea48bcc7f6d5286e4f85b1a0cce84d8 (diff) | |
download | dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.tar dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.tar.gz dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.tar.bz2 dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.tar.lz dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.tar.xz dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.tar.zst dexon-78cb04cca3daafa178558a3dec5f4814f824dc95.zip |
wrong string
Diffstat (limited to 'ethpub')
-rw-r--r-- | ethpub/pub.go | 4 |
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 } |