We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 143d2f4 commit faff2a7Copy full SHA for faff2a7
libsolidity/analysis/SyntaxChecker.cpp
@@ -150,7 +150,7 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
150
else
151
m_sourceUnit->annotation().useABICoderV2 = (_pragma.literals()[1] == "v2");
152
153
- if (_pragma.literals().size() > 1 && _pragma.literals()[1] == "v1")
+ if (!*m_sourceUnit->annotation().useABICoderV2)
154
m_errorReporter.warning(
155
9511_error,
156
_pragma.location(),
0 commit comments