aboutsummaryrefslogtreecommitdiffstats
path: root/vm.cpp
diff options
context:
space:
mode:
authorGav Wood <i@gavwood.com>2014-04-24 03:37:16 +0800
committerGav Wood <i@gavwood.com>2014-04-24 03:37:16 +0800
commit0f16595ba10ac2e4bae06d1165959aef511c549b (patch)
tree835ec38290d0bb587280c9aff61f67d2581e87d9 /vm.cpp
parent3a2597d871958da9a2bca473b273027551101abb (diff)
downloaddexon-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.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/vm.cpp b/vm.cpp
index 7d8501d3..abed42f7 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));
}