aboutsummaryrefslogtreecommitdiffstats
path: root/ethpub
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-05-23 00:24:04 +0800
committerobscuren <geffobscura@gmail.com>2014-05-23 00:24:04 +0800
commit281559d42712c2b2ae903cb893b2ddc82318307d (patch)
treeffc5c980bc283d7ec92bad6643e95d4b41cb6333 /ethpub
parentcc8464ce805279735f637ac710b25e2fb264f9aa (diff)
downloaddexon-281559d42712c2b2ae903cb893b2ddc82318307d.tar
dexon-281559d42712c2b2ae903cb893b2ddc82318307d.tar.gz
dexon-281559d42712c2b2ae903cb893b2ddc82318307d.tar.bz2
dexon-281559d42712c2b2ae903cb893b2ddc82318307d.tar.lz
dexon-281559d42712c2b2ae903cb893b2ddc82318307d.tar.xz
dexon-281559d42712c2b2ae903cb893b2ddc82318307d.tar.zst
dexon-281559d42712c2b2ae903cb893b2ddc82318307d.zip
Canonical contract creation
Diffstat (limited to 'ethpub')
-rw-r--r--ethpub/pub.go4
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" {