From be4d2b7dcae9069b1aba4627a7948c0df66f6e6a Mon Sep 17 00:00:00 2001 From: Andrei Maiboroda Date: Fri, 4 Oct 2019 13:58:15 +0200 Subject: [PATCH] Remove redundant CALL gas cost assignment --- libaleth-interpreter/VMCalls.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/libaleth-interpreter/VMCalls.cpp b/libaleth-interpreter/VMCalls.cpp index 3b130379558..56a98c42494 100644 --- a/libaleth-interpreter/VMCalls.cpp +++ b/libaleth-interpreter/VMCalls.cpp @@ -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(m_OP)].gas_cost; switch (m_OP) {