From 8a890ffffa4ff60647ecf5db7f2b0d2c0abf67b6 Mon Sep 17 00:00:00 2001 From: Vittorio Minacori Date: Tue, 4 Jun 2024 12:42:20 +0200 Subject: [PATCH] Update ERC1363 error signatures (#5010) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Ernesto GarcĂ­a Co-authored-by: cairo <101215230+cairoeth@users.noreply.github.com> --- contracts/token/ERC20/extensions/ERC1363.sol | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/contracts/token/ERC20/extensions/ERC1363.sol b/contracts/token/ERC20/extensions/ERC1363.sol index 20cb6d9dd..1852ffa81 100644 --- a/contracts/token/ERC20/extensions/ERC1363.sol +++ b/contracts/token/ERC20/extensions/ERC1363.sol @@ -30,16 +30,23 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 { /** * @dev Indicates a failure within the {transfer} part of a transferAndCall operation. + * @param receiver Address to which tokens are being transferred. + * @param value Amount of tokens to be transferred. */ - error ERC1363TransferFailed(address to, uint256 value); + error ERC1363TransferFailed(address receiver, uint256 value); /** * @dev Indicates a failure within the {transferFrom} part of a transferFromAndCall operation. + * @param sender Address from which to send tokens. + * @param receiver Address to which tokens are being transferred. + * @param value Amount of tokens to be transferred. */ - error ERC1363TransferFromFailed(address from, address to, uint256 value); + error ERC1363TransferFromFailed(address sender, address receiver, uint256 value); /** * @dev Indicates a failure within the {approve} part of a approveAndCall operation. + * @param spender Address which will spend the funds. + * @param value Amount of tokens to be spent. */ error ERC1363ApproveFailed(address spender, uint256 value);