wrong string

pull/150/head
obscuren 11 years ago
parent 14a6e6a9ce
commit 78cb04cca3
  1. 4
      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
}

Loading…
Cancel
Save