|
|
@ -151,7 +151,7 @@ bool Executive::call(CallParameters const& _p, u256 const& _gasPrice, Address co |
|
|
|
{ |
|
|
|
m_outRef = _p.out; // Save ref to expected output buffer to be used in go()
|
|
|
|
bytes const& c = m_s.code(_p.codeAddress); |
|
|
|
m_ext = make_shared<ExtVM>(m_s, m_lastHashes, _p.receiveAddress, _p.senderAddress, _origin, _p.value, _gasPrice, _p.data, &c, m_depth); |
|
|
|
m_ext.reset(new ExtVM{m_s, m_lastHashes, _p.receiveAddress, _p.senderAddress, _origin, _p.value, _gasPrice, _p.data, &c, m_depth}); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
@ -171,7 +171,7 @@ bool Executive::create(Address _sender, u256 _endowment, u256 _gasPrice, u256 _g |
|
|
|
|
|
|
|
// Execute _init.
|
|
|
|
if (!_init.empty()) |
|
|
|
m_ext = make_shared<ExtVM>(m_s, m_lastHashes, m_newAddress, _sender, _origin, _endowment, _gasPrice, bytesConstRef(), _init, m_depth); |
|
|
|
m_ext.reset(new ExtVM{m_s, m_lastHashes, m_newAddress, _sender, _origin, _endowment, _gasPrice, bytesConstRef(), _init, m_depth}); |
|
|
|
|
|
|
|
m_s.m_cache[m_newAddress] = Account(m_s.balance(m_newAddress), Account::ContractConception); |
|
|
|
m_s.transferBalance(_sender, m_newAddress, _endowment); |
|
|
|