diff --git a/contracts/token/ERC20/IERC20.sol b/contracts/token/ERC20/IERC20.sol index ac2d85331..1bf236091 100644 --- a/contracts/token/ERC20/IERC20.sol +++ b/contracts/token/ERC20/IERC20.sol @@ -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); -} +} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index 591247689..1ecb33dc8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -4007,12 +4007,14 @@ "balanced-match": { "version": "1.0.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "brace-expansion": { "version": "1.1.11", "bundled": true, "dev": true, + "optional": true, "requires": { "balanced-match": "^1.0.0", "concat-map": "0.0.1" @@ -4027,17 +4029,20 @@ "code-point-at": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "concat-map": { "version": "0.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "console-control-strings": { "version": "1.1.0", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "core-util-is": { "version": "1.0.2", @@ -4154,7 +4159,8 @@ "inherits": { "version": "2.0.3", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "ini": { "version": "1.3.5", @@ -4166,6 +4172,7 @@ "version": "1.0.0", "bundled": true, "dev": true, + "optional": true, "requires": { "number-is-nan": "^1.0.0" } @@ -4180,6 +4187,7 @@ "version": "3.0.4", "bundled": true, "dev": true, + "optional": true, "requires": { "brace-expansion": "^1.1.7" } @@ -4187,12 +4195,14 @@ "minimist": { "version": "0.0.8", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "minipass": { "version": "2.2.4", "bundled": true, "dev": true, + "optional": true, "requires": { "safe-buffer": "^5.1.1", "yallist": "^3.0.0" @@ -4211,6 +4221,7 @@ "version": "0.5.1", "bundled": true, "dev": true, + "optional": true, "requires": { "minimist": "0.0.8" } @@ -4291,7 +4302,8 @@ "number-is-nan": { "version": "1.0.1", "bundled": true, - "dev": true + "dev": true, + "optional": true }, "object-assign": { "version": "4.1.1", @@ -4303,6 +4315,7 @@ "version": "1.4.0", "bundled": true, "dev": true, + "optional": true, "requires": { "wrappy": "1" } @@ -4424,6 +4437,7 @@ "version": "1.0.2", "bundled": true, "dev": true, + "optional": true, "requires": { "code-point-at": "^1.0.0", "is-fullwidth-code-point": "^1.0.0", @@ -9904,4 +9918,4 @@ } } } -} +} \ No newline at end of file diff --git a/test/token/ERC20/SafeERC20.test.js b/test/token/ERC20/SafeERC20.test.js index a7888fb68..6935e33a7 100644 --- a/test/token/ERC20/SafeERC20.test.js +++ b/test/token/ERC20/SafeERC20.test.js @@ -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()); }); @@ -98,4 +90,4 @@ contract('SafeERC20', function () { }); }); }); -}); +}); \ No newline at end of file