Skip to content

Commit

Permalink
final cleanup (minimize changes)
Browse files Browse the repository at this point in the history
  • Loading branch information
Amxx committed Jan 24, 2024
1 parent 12e2952 commit 2c85474
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions contracts/mocks/token/ERC1363ReceiverMock.sol
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ contract ERC1363ReceiverMock is IERC1363Receiver {
_error = RevertType.None;
}

function setUp(bytes4 retval, RevertType err) public {
function setUp(bytes4 retval, RevertType error) public {
_retval = retval;
_error = err;
_error = error;
}

function onTransferReceived(
Expand Down
6 changes: 3 additions & 3 deletions contracts/token/ERC20/extensions/ERC1363.sol
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
* - The target has code (i.e. is a contract).
* - The target `to` must implement the {IERC1363Receiver} interface.
* - The target should return the {IERC1363Receiver} interface id.
* - The internal {transfer} must have succeeded (returned `true`).
* - The internal {transfer} must succeed (returned `true`).
*/
function transferAndCall(address to, uint256 value) public returns (bool) {
return transferAndCall(to, value, "");
Expand All @@ -86,7 +86,7 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
* - The target has code (i.e. is a contract).
* - The target `to` must implement the {IERC1363Receiver} interface.
* - The target should return the {IERC1363Receiver} interface id.
* - The internal {transferFrom} must have succeeded (returned `true`).
* - The internal {transferFrom} must succeed (returned `true`).
*/
function transferFromAndCall(address from, address to, uint256 value) public returns (bool) {
return transferFromAndCall(from, to, value, "");
Expand Down Expand Up @@ -118,7 +118,7 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
* - The target has code (i.e. is a contract).
* - The target `to` must implement the {IERC1363Spender} interface.
* - The target should return the {IERC1363Spender} interface id.
* - The internal {approve} must have succeeded (returned `true`).
* - The internal {approve} must succeed (returned `true`).
*/
function approveAndCall(address spender, uint256 value) public returns (bool) {
return approveAndCall(spender, value, "");
Expand Down

0 comments on commit 2c85474

Please sign in to comment.