mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-03-02 01:23:45 +00:00
wrong string
This commit is contained in:
parent
14a6e6a9ce
commit
78cb04cca3
1 changed files with 2 additions and 2 deletions
|
|
@ -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 a new issue