Skip to content

Commit

Permalink
Update ERC1363 error signatures (OpenZeppelin#5010)
Browse files Browse the repository at this point in the history
Co-authored-by: Ernesto García <ernestognw@gmail.com>
Co-authored-by: cairo <101215230+cairoeth@users.noreply.github.com>
  • Loading branch information
3 people authored Jun 4, 2024
1 parent 06449fe commit 8a890ff
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions contracts/token/ERC20/extensions/ERC1363.sol
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 8a890ff

Please sign in to comment.