wrong string

This commit is contained in:
obscuren 2014-05-05 15:51:43 +02:00
parent 14a6e6a9ce
commit 78cb04cca3

View File

@ -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
}