We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7fdca7b commit 39ffce9Copy full SHA for 39ffce9
contracts/crowdsale/emission/AllowanceCrowdsale.sol
@@ -31,7 +31,7 @@ contract AllowanceCrowdsale is Crowdsale {
31
* @return Amount of tokens left in the allowance
32
*/
33
function remainingTokens() public view returns (uint256) {
34
- return token.allowance(tokenWallet, this);
+ return token.allowance(tokenWallet, address(this));
35
}
36
37
/**
contracts/lifecycle/TokenDestructible.sol
@@ -26,7 +26,7 @@ contract TokenDestructible is Ownable {
26
// Transfer tokens to owner
27
for (uint256 i = 0; i < _tokens.length; i++) {
28
ERC20Basic token = ERC20Basic(_tokens[i]);
29
- uint256 balance = token.balanceOf(this);
+ uint256 balance = token.balanceOf(address(this));
30
token.transfer(owner, balance);
0 commit comments