Skip to content
This repository has been archived by the owner on Oct 28, 2021. It is now read-only.

aleth-precompiles library #5855

Open
wants to merge 10 commits into
base: master
Choose a base branch
from
Prev Previous commit
Next Next commit
Fix delegate calls to precompiles and gas calculation in case of error
gumb0 committed Dec 23, 2019
commit f273ee80966e137fdab471263d6b22e9d8b23467
6 changes: 3 additions & 3 deletions libethereum/Executive.cpp
Original file line number Diff line number Diff line change
@@ -189,12 +189,12 @@ bool Executive::call(CallParameters const& _p, u256 const& _gasPrice, Address co

try
{
m_gas = _p.gas;

auto gas = _p.gas;
auto const& schedule = m_sealEngine.evmSchedule(m_envInfo.number());
bool const isCreate = false;
m_output = precompilesVM->exec(m_gas, _p.receiveAddress, _p.senderAddress,
m_output = precompilesVM->exec(gas, _p.codeAddress, _p.senderAddress,
_p.apparentValue, _p.data, m_depth, isCreate, _p.staticCall, schedule);
m_gas = gas;
}
catch (OutOfGas const&)
{