mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
CALLDATACOPY instruction.
Contract body gets created from init code.
This commit is contained in:
parent
3a2597d871
commit
0f16595ba1
5
vm.cpp
5
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));
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user