Skip to content

Instantly share code, notes, and snippets.

@DaveAppleton
Created January 5, 2018 19:49
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DaveAppleton/ef44e9745b1f57c7ae0d6744a15bc5c6 to your computer and use it in GitHub Desktop.
Save DaveAppleton/ef44e9745b1f57c7ae0d6744a15bc5c6 to your computer and use it in GitHub Desktop.
Demo that a fallback appears to return true
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