From a4e986ffa6f162eb17c8cc9b50f997c15ca12851 Mon Sep 17 00:00:00 2001 From: Arr00 <13561405+arr00@users.noreply.github.com> Date: Fri, 5 Dec 2025 23:21:34 +0200 Subject: [PATCH] Expose additional interface id in wrapper --- contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol b/contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol index 3add9d7e..9640b622 100644 --- a/contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol +++ b/contracts/token/ERC7984/extensions/ERC7984ERC20Wrapper.sol @@ -63,6 +63,11 @@ abstract contract ERC7984ERC20Wrapper is ERC7984, IERC1363Receiver { return _underlying; } + /// inheritdoc IERC165 + function supportsInterface(bytes4 interfaceId) public view virtual override(ERC7984) returns (bool) { + return interfaceId == type(ERC7984ERC20Wrapper).interfaceId || super.supportsInterface(interfaceId); + } + /** * @dev `ERC1363` callback function which wraps tokens to the address specified in `data` or * the address `from` (if no address is specified in `data`). This function refunds any excess tokens