Rename var

This commit is contained in:
Leonardo Alt 2020-07-01 12:41:30 +02:00
parent 5160f89c1b
commit 56e7d43384

View File

@ -593,10 +593,10 @@ void CHC::externalFunctionCall(FunctionCall const& _funCall)
return;
auto preCallState = currentStateVariables();
bool noStateChanges = kind == FunctionType::Kind::BareStaticCall ||
bool usesStaticCall = kind == FunctionType::Kind::BareStaticCall ||
function->stateMutability() == StateMutability::Pure ||
function->stateMutability() == StateMutability::View;
if (!noStateChanges)
if (!usesStaticCall)
for (auto const* var: m_stateVariables)
m_context.variable(*var)->increaseIndex();