wrong string
This commit is contained in:
parent
14a6e6a9ce
commit
78cb04cca3
|
@ -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…
Reference in New Issue