Change to safecall into ERC20

This commit is contained in:
Ricardo Guilherme Schmidt 2017-11-09 13:06:24 -02:00
parent e43d1c5d78
commit fd75fc1ba2

View File

@ -11,6 +11,15 @@ contract MultiSigTokenWallet is MultiSigWallet {
* Public functions
*
**/
/**
* @dev only call parent constructor
*/
function MultiSigTokenWallet(address[] _owners, uint _required)
MultiSigWallet(_owners,_required)
public
{
//does nothing
}
/**
* @notice deposit a ERC20 token. The amount of deposit is the allowance set to this contract.
* @param _token the token contract address
@ -105,7 +114,7 @@ contract MultiSigTokenWallet is MultiSigWallet {
address _tokenAddr = _tokenList[i];
uint _amount = ERC20(_tokenAddr).balanceOf(address(this));
if (_amount > 0) {
ERC20(_tokenAddr).call(bytes4(keccak256("transfer(address,uint256)")), _dest, _amount);
ERC20(_tokenAddr).transfer(_dest, _amount);
}
}
}