Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update ERC1363 error signatures #5010

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
11 changes: 9 additions & 2 deletions contracts/token/ERC20/extensions/ERC1363.sol
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 to, uint256 value);
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 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 The address which will spend the funds.
* @param value The amount of tokens to be spent.
*/
error ERC1363ApproveFailed(address spender, uint256 value);

Expand Down