mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-11 10:06:20 +00:00
Change to safecall into ERC20
This commit is contained in:
parent
e43d1c5d78
commit
fd75fc1ba2
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user