From 0f16595ba10ac2e4bae06d1165959aef511c549b Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 23 Apr 2014 20:37:16 +0100 Subject: [PATCH] CALLDATACOPY instruction. Contract body gets created from init code. --- vm.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/vm.cpp b/vm.cpp index 7d8501d35..abed42f77 100644 --- a/vm.cpp +++ b/vm.cpp @@ -70,14 +70,13 @@ public: txs.push_back(_t); } } - h160 create(u256 _endowment, u256* _gas, bytesConstRef _code, bytesConstRef _init) + h160 create(u256 _endowment, u256* _gas, bytesConstRef _init) { Transaction t; t.value = _endowment; t.gasPrice = gasPrice; t.gas = *_gas; - t.data = _code.toBytes(); - t.init = _init.toBytes(); + t.data = _init.toBytes(); txs.push_back(t); return right160(t.sha3(false)); }