sablier-labs / flow

🍃 Smart contracts of the Sablier Flow protocol.
Other
10 stars 2 forks source link

Comply with `EIP-165` #330

Closed smol-ninja closed 1 week ago

smol-ninja commented 1 week ago

Since SablierFlowBase inherits from EIP4906, add the following function to comply with EIP 165:

/// @inheritdoc ERC721
function supportsInterface(bytes4 interfaceId) public view override(IERC165, ERC721) returns (bool) {
    // 0x49064906 is the ERC-165 interface ID required by ERC-4906
    return interfaceId == 0x49064906 || super.supportsInterface(interfaceId);
}

Reported in Codehawk audit.