Skip to content

Commit d2c985c

Browse files
fixup! ABI coder v1
1 parent 26e2f2e commit d2c985c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libsolidity/analysis/SyntaxChecker.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
151151
m_sourceUnit->annotation().useABICoderV2 = (_pragma.literals()[1] == "v2");
152152

153153
if (
154-
m_sourceUnit->annotation().useABICoderV2.set() &&
155-
!*m_sourceUnit->annotation().useABICoderV2
154+
_pragma.literals().size() > 1 &&
155+
_pragma.literals()[1] == "v1"
156156
)
157157
m_errorReporter.warning(
158158
9511_error,

0 commit comments

Comments
 (0)