Erase balances when delegatecall is seen

This commit is contained in:
Leo Alt
2021-08-25 12:39:26 +02:00
parent 7a0295ec6c
commit a55685c04f
12 changed files with 203 additions and 0 deletions
+7
View File
@@ -2281,6 +2281,13 @@ void SMTEncoder::resetStorageVariables()
});
}
void SMTEncoder::resetBalances()
{
// TODO this should be changed to `balances` only
// when `state` gets more members.
state().newState();
}
void SMTEncoder::resetReferences(VariableDeclaration const& _varDecl)
{
m_context.resetVariables([&](VariableDeclaration const& _var) {