Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Aniket-Engg committed Dec 21, 2018
1 parent c3c5d76 commit 5592be0
Show file tree
Hide file tree
Showing 3 changed files with 26 additions and 24 deletions.
8 changes: 2 additions & 6 deletions contracts/token/ERC20/IERC20.sol
Original file line number Diff line number Diff line change
Expand Up @@ -17,11 +17,7 @@ interface IERC20 {

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

event Transfer(
address indexed from,
address indexed to,
uint256 value
);
event Transfer(address indexed from, address indexed to, uint256 value);

event Approval(address indexed owner, address indexed spender, uint256 value);
}
}
30 changes: 22 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

12 changes: 2 additions & 10 deletions test/token/ERC20/SafeERC20.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,10 @@ contract('SafeERC20', function () {
await shouldFail.reverting(this.helper.doFailingApprove());
});

it('should throw on failed increaseAllowance', async function () {
it('reverts on increaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingIncreaseAllowance());
});

it('should throw on failed decreaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());
});

it('should not throw on succeeding transfer', async function () {
await this.helper.doSucceedingTransfer();
});

it('reverts on decreaseAllowance', async function () {
await shouldFail.reverting(this.helper.doFailingDecreaseAllowance());
});
Expand Down Expand Up @@ -98,4 +90,4 @@ contract('SafeERC20', function () {
});
});
});
});
});

0 comments on commit 5592be0

Please sign in to comment.