-
-
Save DaveAppleton/ef44e9745b1f57c7ae0d6744a15bc5c6 to your computer and use it in GitHub Desktop.
Demo that a fallback appears to return true
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pragma solidity ^0.4.19; | |
contract shift { | |
function () public { | |
} | |
} | |
contract IToken { | |
function tokenFallBack() public returns (bool); | |
} | |
contract B { | |
function test(address a) public view returns (bool) { | |
IToken x = IToken(a); | |
return x.tokenFallBack(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment