Skip to content

Commit faff2a7

Browse files
fixup! ABI coder v1 deprecation warning
1 parent 143d2f4 commit faff2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

libsolidity/analysis/SyntaxChecker.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
150150
else
151151
m_sourceUnit->annotation().useABICoderV2 = (_pragma.literals()[1] == "v2");
152152

153-
if (_pragma.literals().size() > 1 && _pragma.literals()[1] == "v1")
153+
if (!*m_sourceUnit->annotation().useABICoderV2)
154154
m_errorReporter.warning(
155155
9511_error,
156156
_pragma.location(),

0 commit comments

Comments
 (0)