From d525a8bccbda4fb5b1e3facbca777bc6c3cf261d Mon Sep 17 00:00:00 2001 From: chriseth Date: Wed, 18 Nov 2020 20:22:51 +0100 Subject: [PATCH] Enable ABI coder v2 by default. --- Changelog.md | 1 + libsolidity/analysis/SyntaxChecker.cpp | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Changelog.md b/Changelog.md index d6a8a9a36..06db06eda 100644 --- a/Changelog.md +++ b/Changelog.md @@ -6,6 +6,7 @@ Breaking Changes: * Code Generator: Cause a panic if a byte array in storage is accessed whose length is encoded incorrectly. * Command Line Interface: Remove the ``--old-reporter`` option. * Command Line Interface: Remove the legacy ``--ast-json`` option. Only the ``--ast-compact-json`` option is supported now. + * General: Enable ABI coder v2 by default. * General: Remove global functions ``log0``, ``log1``, ``log2``, ``log3`` and ``log4``. * Standard JSON: Remove the ``legacyAST`` option. * Type Checker: Function call options can only be given once. diff --git a/libsolidity/analysis/SyntaxChecker.cpp b/libsolidity/analysis/SyntaxChecker.cpp index 0e8e7684e..9fac5f6d5 100644 --- a/libsolidity/analysis/SyntaxChecker.cpp +++ b/libsolidity/analysis/SyntaxChecker.cpp @@ -74,7 +74,7 @@ void SyntaxChecker::endVisit(SourceUnit const& _sourceUnit) m_errorReporter.warning(3420_error, {-1, -1, _sourceUnit.location().source}, errorString); } if (!m_sourceUnit->annotation().useABICoderV2.set()) - m_sourceUnit->annotation().useABICoderV2 = false; + m_sourceUnit->annotation().useABICoderV2 = true; m_sourceUnit = nullptr; }