Skip to content

Commit 8a890ff

Browse files
vittominacoriernestognwcairoeth
authored
Update ERC1363 error signatures (#5010)
Co-authored-by: Ernesto García <[email protected]> Co-authored-by: cairo <[email protected]>
1 parent 06449fe commit 8a890ff

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

contracts/token/ERC20/extensions/ERC1363.sol

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,23 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
3030

3131
/**
3232
* @dev Indicates a failure within the {transfer} part of a transferAndCall operation.
33+
* @param receiver Address to which tokens are being transferred.
34+
* @param value Amount of tokens to be transferred.
3335
*/
34-
error ERC1363TransferFailed(address to, uint256 value);
36+
error ERC1363TransferFailed(address receiver, uint256 value);
3537

3638
/**
3739
* @dev Indicates a failure within the {transferFrom} part of a transferFromAndCall operation.
40+
* @param sender Address from which to send tokens.
41+
* @param receiver Address to which tokens are being transferred.
42+
* @param value Amount of tokens to be transferred.
3843
*/
39-
error ERC1363TransferFromFailed(address from, address to, uint256 value);
44+
error ERC1363TransferFromFailed(address sender, address receiver, uint256 value);
4045

4146
/**
4247
* @dev Indicates a failure within the {approve} part of a approveAndCall operation.
48+
* @param spender Address which will spend the funds.
49+
* @param value Amount of tokens to be spent.
4350
*/
4451
error ERC1363ApproveFailed(address spender, uint256 value);
4552

0 commit comments

Comments
 (0)