Skip to content

Commit

Permalink
Add natspec comments for params to ERC1363 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
vittominacori committed Jun 3, 2024
1 parent ac68b32 commit 0a2dc05
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 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 The address to which tokens are being transferred.
* @param value The amount of tokens to be transferred.
*/
error ERC1363TransferFailed(address receiver, uint256 value);

/**
* @dev Indicates a failure within the {transferFrom} part of a transferFromAndCall operation.
* @param sender The address from which to send tokens.
* @param receiver The address to which tokens are being transferred.
* @param value The amount of tokens to be transferred.
*/
error ERC1363TransferFromFailed(address sender, address receiver, uint256 value);

/**
* @dev Indicates a failure within the {approve} part of a approveAndCall operation.
* @param spender The address which will spend the funds.
* @param value The amount of tokens to be spent.
*/
error ERC1363ApproveFailed(address spender, uint256 value);

Expand Down

0 comments on commit 0a2dc05

Please sign in to comment.