Skip to content

Commit d35d654

Browse files
committed
Changelog and docs
1 parent 1362403 commit d35d654

File tree

2 files changed

+1
-6
lines changed

2 files changed

+1
-6
lines changed

docs/contracts/errors.rst

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,15 +19,14 @@ as well as the newer approach with ``require`` in function ``transferWithRequire
1919
.. code-block:: solidity
2020
2121
// SPDX-License-Identifier: GPL-3.0
22-
pragma solidity ^0.8.26;
22+
pragma solidity ^0.8.27;
2323
2424
/// Insufficient balance for transfer. Needed `required` but only
2525
/// `available` available.
2626
/// @param available balance available.
2727
/// @param required requested amount to transfer.
2828
error InsufficientBalance(uint256 available, uint256 required);
2929
30-
// This will only compile via IR
3130
contract TestToken {
3231
mapping(address => uint) balance;
3332
function transferWithRevertError(address to, uint256 amount) public {

docs/control-structures.rst

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -639,10 +639,6 @@ The ``require`` function provides three overloads:
639639
For example, in ``require(condition, CustomError(f()));`` and ``require(condition, f());``,
640640
function ``f()`` will be called regardless of whether the supplied condition is ``true`` or ``false``.
641641

642-
.. note::
643-
Using custom errors with ``require`` is only supported by the via IR pipeline, i.e. compilation via Yul.
644-
For the legacy pipeline, please use ``if (!condition) revert CustomError();`` instead.
645-
646642
An ``Error(string)`` exception (or an exception without data) is generated
647643
by the compiler in the following situations:
648644

0 commit comments

Comments
 (0)