Enable ABI coder v2 by default.

This commit is contained in:
chriseth 2020-11-18 20:22:51 +01:00
parent b18c76e34b
commit d525a8bccb
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ Breaking Changes:
* Code Generator: Cause a panic if a byte array in storage is accessed whose length is encoded incorrectly. * 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 ``--old-reporter`` option.
* Command Line Interface: Remove the legacy ``--ast-json`` option. Only the ``--ast-compact-json`` option is supported now. * 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``. * General: Remove global functions ``log0``, ``log1``, ``log2``, ``log3`` and ``log4``.
* Standard JSON: Remove the ``legacyAST`` option. * Standard JSON: Remove the ``legacyAST`` option.
* Type Checker: Function call options can only be given once. * Type Checker: Function call options can only be given once.

View File

@ -74,7 +74,7 @@ void SyntaxChecker::endVisit(SourceUnit const& _sourceUnit)
m_errorReporter.warning(3420_error, {-1, -1, _sourceUnit.location().source}, errorString); m_errorReporter.warning(3420_error, {-1, -1, _sourceUnit.location().source}, errorString);
} }
if (!m_sourceUnit->annotation().useABICoderV2.set()) if (!m_sourceUnit->annotation().useABICoderV2.set())
m_sourceUnit->annotation().useABICoderV2 = false; m_sourceUnit->annotation().useABICoderV2 = true;
m_sourceUnit = nullptr; m_sourceUnit = nullptr;
} }