eth-interface

EIP-165 interface and tools for chainlib-eth
git clone git://holbrook.no/eth-interface.git
Info | Log | Files | Refs

Supports.sol (232B)


      1 pragma solidity ^0.8.0;
      2 
      3 contract Supports {
      4 	function supportsInterface(bytes4 _sum) public pure returns (bool) {
      5 		if (_sum == 0x01ffc9a7) {
      6 			return true;
      7 		}
      8 		if (_sum == 0xdeadbeef) {
      9 			return true;
     10 		}
     11 		return false;
     12 	}
     13 }