Skip to content

Commit 2c85474

Browse files
committed
final cleanup (minimize changes)
1 parent 12e2952 commit 2c85474

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

contracts/mocks/token/ERC1363ReceiverMock.sol

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ contract ERC1363ReceiverMock is IERC1363Receiver {
2424
_error = RevertType.None;
2525
}
2626

27-
function setUp(bytes4 retval, RevertType err) public {
27+
function setUp(bytes4 retval, RevertType error) public {
2828
_retval = retval;
29-
_error = err;
29+
_error = error;
3030
}
3131

3232
function onTransferReceived(

contracts/token/ERC20/extensions/ERC1363.sol

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
5959
* - The target has code (i.e. is a contract).
6060
* - The target `to` must implement the {IERC1363Receiver} interface.
6161
* - The target should return the {IERC1363Receiver} interface id.
62-
* - The internal {transfer} must have succeeded (returned `true`).
62+
* - The internal {transfer} must succeed (returned `true`).
6363
*/
6464
function transferAndCall(address to, uint256 value) public returns (bool) {
6565
return transferAndCall(to, value, "");
@@ -86,7 +86,7 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
8686
* - The target has code (i.e. is a contract).
8787
* - The target `to` must implement the {IERC1363Receiver} interface.
8888
* - The target should return the {IERC1363Receiver} interface id.
89-
* - The internal {transferFrom} must have succeeded (returned `true`).
89+
* - The internal {transferFrom} must succeed (returned `true`).
9090
*/
9191
function transferFromAndCall(address from, address to, uint256 value) public returns (bool) {
9292
return transferFromAndCall(from, to, value, "");
@@ -118,7 +118,7 @@ abstract contract ERC1363 is ERC20, ERC165, IERC1363 {
118118
* - The target has code (i.e. is a contract).
119119
* - The target `to` must implement the {IERC1363Spender} interface.
120120
* - The target should return the {IERC1363Spender} interface id.
121-
* - The internal {approve} must have succeeded (returned `true`).
121+
* - The internal {approve} must succeed (returned `true`).
122122
*/
123123
function approveAndCall(address spender, uint256 value) public returns (bool) {
124124
return approveAndCall(spender, value, "");

0 commit comments

Comments
 (0)