mirror of
git://holbrook.no/eth-contract-registry
synced 2026-05-20 03:01:09 +02:00
Separate out interface
This commit is contained in:
@@ -58,4 +58,18 @@ contract CICRegistry {
|
||||
function configSumOf(bytes32 _chain) public view returns (bytes32) {
|
||||
return chainConfigs[_chain];
|
||||
}
|
||||
|
||||
// Implements EIP 165
|
||||
function supportsInterface(bytes4 _sum) public pure returns (bool) {
|
||||
if (_sum == 0xbb34534c) { // Registry
|
||||
return true;
|
||||
}
|
||||
if (_sum == 0x01ffc9a7) { // EIP165
|
||||
return true;
|
||||
}
|
||||
if (_sum == 0x9493f8b2) { // EIP173
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user