Skip to content

Commit f07e13b

Browse files
committed
Added supports interface
1 parent 56ec8cb commit f07e13b

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

contracts/src/external/HyperdriveTarget0.sol

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,18 @@ abstract contract HyperdriveTarget0 is
532532
_revert(abi.encode(_nonces[account]));
533533
}
534534

535+
/// @notice Returns whether or not an interface is supported.
536+
/// @param interfaceId The ID of the interface.
537+
/// @return A flag indicating whether or not the interface is supported.
538+
function supportsInterface(
539+
bytes4 interfaceId
540+
) external pure returns (bool) {
541+
if (interfaceId == bytes4(0xd9b67a26)) {
542+
return true;
543+
}
544+
return false;
545+
}
546+
535547
/// Helpers ///
536548

537549
/// @dev Reverts with the provided bytes. This is useful in getters used

0 commit comments

Comments
 (0)