Skip to content

Commit 2d375c8

Browse files
ABI coder v1 deprecation warning
1 parent 2b3d2b4 commit 2d375c8

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

libsolidity/analysis/SyntaxChecker.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,13 @@ bool SyntaxChecker::visit(PragmaDirective const& _pragma)
149149
);
150150
else
151151
m_sourceUnit->annotation().useABICoderV2 = (_pragma.literals()[1] == "v2");
152+
153+
if (_pragma.literals().size() > 1 && _pragma.literals()[1] == "v1")
154+
m_errorReporter.warning(
155+
9511_error,
156+
_pragma.location(),
157+
"ABI coder v1 is deprecated and scheduled for removal in the next breaking version (0.9)."
158+
);
152159
}
153160
else if (_pragma.literals()[0] == "solidity")
154161
{

0 commit comments

Comments
 (0)