diff options
author | Gav Wood <i@gavwood.com> | 2014-04-24 03:37:16 +0800 |
---|---|---|
committer | Gav Wood <i@gavwood.com> | 2014-04-24 03:37:16 +0800 |
commit | 0f16595ba10ac2e4bae06d1165959aef511c549b (patch) | |
tree | 835ec38290d0bb587280c9aff61f67d2581e87d9 /vm.cpp | |
parent | 3a2597d871958da9a2bca473b273027551101abb (diff) | |
download | dexon-solidity-0f16595ba10ac2e4bae06d1165959aef511c549b.tar.gz dexon-solidity-0f16595ba10ac2e4bae06d1165959aef511c549b.tar.zst dexon-solidity-0f16595ba10ac2e4bae06d1165959aef511c549b.zip |
CALLDATACOPY instruction.
Contract body gets created from init code.
Diffstat (limited to 'vm.cpp')
-rw-r--r-- | vm.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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)); } |