mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix ICE in CHC when using gas in the function options
This commit is contained in:
@@ -791,8 +791,8 @@ void CHC::externalFunctionCall(FunctionCall const& _funCall)
|
||||
valueIndex = i;
|
||||
break;
|
||||
}
|
||||
solAssert(valueIndex, "");
|
||||
state().addBalance(state().thisAddress(), 0 - expr(*callOptions->options().at(*valueIndex)));
|
||||
if (valueIndex)
|
||||
state().addBalance(state().thisAddress(), 0 - expr(*callOptions->options().at(*valueIndex)));
|
||||
}
|
||||
|
||||
auto preCallState = vector<smtutil::Expression>{state().state()} + currentStateVariables();
|
||||
|
||||
Reference in New Issue
Block a user