Skip to content

Commit 5592be0

Browse files
committed
1 parent c3c5d76 commit 5592be0

File tree

3 files changed

+26
-24
lines changed

3 files changed

+26
-24
lines changed

contracts/token/ERC20/IERC20.sol

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,7 @@ interface IERC20 {
1717

1818
function transferFrom(address from, address to, uint256 value) external returns (bool);
1919

20-
event Transfer(
21-
address indexed from,
22-
address indexed to,
23-
uint256 value
24-
);
20+
event Transfer(address indexed from, address indexed to, uint256 value);
2521

2622
event Approval(address indexed owner, address indexed spender, uint256 value);
27-
}
23+
}

package-lock.json

Lines changed: 22 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

test/token/ERC20/SafeERC20.test.js

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -22,18 +22,10 @@ contract('SafeERC20', function () {
2222
await shouldFail.reverting(this.helper.doFailingApprove());
2323
});
2424

25-
it('should throw on failed increaseAllowance', async function () {
25+
it('reverts on increaseAllowance', async function () {
2626
await shouldFail.reverting(this.helper.doFailingIncreaseAllowance());
2727
});
2828

29-
it('should throw on failed decreaseAllowance', async function () {
30-
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());
31-
});
32-
33-
it('should not throw on succeeding transfer', async function () {
34-
await this.helper.doSucceedingTransfer();
35-
});
36-
3729
it('reverts on decreaseAllowance', async function () {
3830
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());
3931
});
@@ -98,4 +90,4 @@ contract('SafeERC20', function () {
9890
});
9991
});
10092
});
101-
});
93+
});

0 commit comments

Comments
 (0)