diff options
author | obscuren <geffobscura@gmail.com> | 2014-05-23 00:24:04 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-05-23 00:24:04 +0800 |
commit | 281559d42712c2b2ae903cb893b2ddc82318307d (patch) | |
tree | ffc5c980bc283d7ec92bad6643e95d4b41cb6333 /ethpub/pub.go | |
parent | cc8464ce805279735f637ac710b25e2fb264f9aa (diff) | |
download | go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.tar go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.tar.gz go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.tar.bz2 go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.tar.lz go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.tar.xz go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.tar.zst go-tangerine-281559d42712c2b2ae903cb893b2ddc82318307d.zip |
Canonical contract creation
Diffstat (limited to 'ethpub/pub.go')
-rw-r--r-- | ethpub/pub.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/ethpub/pub.go b/ethpub/pub.go index cd002b500..e726c66f3 100644 --- a/ethpub/pub.go +++ b/ethpub/pub.go @@ -141,7 +141,9 @@ func (lib *PEthereum) createTx(key, recipient, valueStr, gasStr, gasPriceStr, in } } - tx = ethchain.NewContractCreationTx(value, gas, gasPrice, mainScript, initScript) + script := ethchain.AppendScript(initScript, mainScript) + + tx = ethchain.NewContractCreationTx(value, gas, gasPrice, script) } else { // Just in case it was submitted as a 0x prefixed string if len(initStr) > 0 && initStr[0:2] == "0x" { |