Update Truffle and Solium (#1105)

* fixed visibility warnings

* solved visibility and line length warning

* change a test assertion that fails due to chai dependence update

* linter, constructor style and solved visibility warnings

* Changed Windows line endings to Unix.
This commit is contained in:
Vittorio Minacori
2018-08-01 15:11:37 +02:00
committed by Nicolás Venturo
parent 9638ecd87a
commit ca9e317259
28 changed files with 2240 additions and 2250 deletions

View File

@ -11,7 +11,13 @@ import "./ERC20.sol";
* which allows you to call the safe operations as `token.safeTransfer(...)`, etc.
*/
library SafeERC20 {
function safeTransfer(ERC20Basic _token, address _to, uint256 _value) internal {
function safeTransfer(
ERC20Basic _token,
address _to,
uint256 _value
)
internal
{
require(_token.transfer(_to, _value));
}
@ -26,7 +32,13 @@ library SafeERC20 {
require(_token.transferFrom(_from, _to, _value));
}
function safeApprove(ERC20 _token, address _spender, uint256 _value) internal {
function safeApprove(
ERC20 _token,
address _spender,
uint256 _value
)
internal
{
require(_token.approve(_spender, _value));
}
}