Filter log statements and remove gas comparison.

This commit is contained in:
Bhargava Shastry
2022-01-26 15:58:12 +01:00
parent 6f59e228eb
commit cfda0e41ce
2 changed files with 3 additions and 18 deletions
+3 -1
View File
@@ -1348,7 +1348,9 @@ void ProtoConverter::visit(Statement const& _x)
m_output << "continue\n";
break;
case Statement::kLogFunc:
visit(_x.log_func());
// Log is a stateful statement since it writes to storage.
if (!m_filterStatefulInstructions)
visit(_x.log_func());
break;
case Statement::kCopyFunc:
visit(_x.copy_func());