mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix tests regarding contract type conversion.
This commit is contained in:
committed by
Alex Beregszaszi
parent
c8232d9759
commit
b800bfb021
@@ -26,7 +26,7 @@ contract TokenDestructible is Ownable {
|
||||
// Transfer tokens to owner
|
||||
for(uint256 i = 0; i < tokens.length; i++) {
|
||||
ERC20Basic token = ERC20Basic(tokens[i]);
|
||||
uint256 balance = token.balanceOf(this);
|
||||
uint256 balance = token.balanceOf(address(this));
|
||||
token.transfer(owner, balance);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user