Skip to content

Commit 6b216d0

Browse files
fixup! ABI coder v1 deprecation warning
1 parent 75beff0 commit 6b216d0

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

libsolidity/analysis/SyntaxChecker.cpp

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

153-
if (!*m_sourceUnit->annotation().useABICoderV2)
153+
if (
154+
m_sourceUnit->annotation().useABICoderV2.set() &&
155+
!*m_sourceUnit->annotation().useABICoderV2
156+
)
154157
m_errorReporter.warning(
155158
9511_error,
156159
_pragma.location(),

0 commit comments

Comments
 (0)