|
|
@ -1214,7 +1214,7 @@ bool State::call(Address _receiveAddress, Address _codeAddress, Address _senderA |
|
|
|
} |
|
|
|
else if (addressHasCode(_codeAddress)) |
|
|
|
{ |
|
|
|
auto vmObj = VMFace::create(getVMKind(), *_gas); |
|
|
|
auto vmObj = VMFactory::create(getVMKind(), *_gas); |
|
|
|
auto& vm = *vmObj; |
|
|
|
ExtVM evm(*this, _receiveAddress, _senderAddress, _originAddress, _value, _gasPrice, _data, &code(_codeAddress), o_ms, _level); |
|
|
|
bool revert = false; |
|
|
@ -1274,7 +1274,7 @@ h160 State::create(Address _sender, u256 _endowment, u256 _gasPrice, u256* _gas, |
|
|
|
m_cache[newAddress] = Account(balance(newAddress) + _endowment, Account::ContractConception); |
|
|
|
|
|
|
|
// Execute init code.
|
|
|
|
auto vmObj = VMFace::create(getVMKind(), *_gas); |
|
|
|
auto vmObj = VMFactory::create(getVMKind(), *_gas); |
|
|
|
auto& vm = *vmObj; |
|
|
|
ExtVM evm(*this, newAddress, _sender, _origin, _endowment, _gasPrice, bytesConstRef(), _code, o_ms, _level); |
|
|
|
bool revert = false; |
|
|
|