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

Commit

Permalink
Remove redundant CALL gas cost assignment
Browse files Browse the repository at this point in the history
  • Loading branch information
gumb0 authored Oct 4, 2019
1 parent b65ceee commit be4d2b7
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions libaleth-interpreter/VMCalls.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,6 @@ bool VM::caseCallSetup(evmc_message& o_msg, bytesRef& o_output)
// Check for call-to-self (eip1380) and adjust gas accordingly
if (m_rev >= EVMC_BERLIN && m_message->destination == destination)
m_runGas = VMSchedule::callSelfGas;
else
m_runGas = evmc_get_instruction_metrics_table(m_rev)[static_cast<size_t>(m_OP)].gas_cost;

switch (m_OP)
{
Expand Down

0 comments on commit be4d2b7

Please sign in to comment.