Skip to content

Commit 39ffce9

Browse files
author
Brendan Chou
committed
this -> address(this)
1 parent 7fdca7b commit 39ffce9

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contracts/crowdsale/emission/AllowanceCrowdsale.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ contract AllowanceCrowdsale is Crowdsale {
3131
* @return Amount of tokens left in the allowance
3232
*/
3333
function remainingTokens() public view returns (uint256) {
34-
return token.allowance(tokenWallet, this);
34+
return token.allowance(tokenWallet, address(this));
3535
}
3636

3737
/**

contracts/lifecycle/TokenDestructible.sol

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ contract TokenDestructible is Ownable {
2626
// Transfer tokens to owner
2727
for (uint256 i = 0; i < _tokens.length; i++) {
2828
ERC20Basic token = ERC20Basic(_tokens[i]);
29-
uint256 balance = token.balanceOf(this);
29+
uint256 balance = token.balanceOf(address(this));
3030
token.transfer(owner, balance);
3131
}
3232

0 commit comments

Comments
 (0)