aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/state_object.go
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 /ethchain/state_object.go
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 'ethchain/state_object.go')
-rw-r--r--ethchain/state_object.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/ethchain/state_object.go b/ethchain/state_object.go
index 4046054db..4d615e2fe 100644
--- a/ethchain/state_object.go
+++ b/ethchain/state_object.go
@@ -28,8 +28,7 @@ func MakeContract(tx *Transaction, state *State) *StateObject {
value := tx.Value
contract := NewContract(addr, value, ZeroHash256)
- contract.script = tx.Data
- contract.initScript = tx.Init
+ contract.initScript = tx.Data
state.UpdateStateObject(contract)