Skip to content

Commit

Permalink
implement IERC2981
Browse files Browse the repository at this point in the history
  • Loading branch information
loic1 committed Feb 12, 2025
1 parent bf68366 commit 86b876c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions evm-bridging/src/BridgedTopShotMoments.sol
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ contract BridgedTopShotMoments is
ERC721EnumerableUpgradeable,
OwnableUpgradeable,
ERC721TransferValidator,
ICrossVM
ICrossVM,
IERC2981
{
string public cadenceNFTAddress;
string public cadenceNFTIdentifier;
Expand All @@ -39,7 +40,7 @@ contract BridgedTopShotMoments is

error InvalidRoyaltyBasisPoints(uint256 basisPoints);
error RoyaltyAddressCannotBeZeroAddress();
event RoyaltyInfoUpdated(address receiver, uint256 bps);
event RoyaltyInfoUpdated(address indexed receiver, uint256 bps);
struct RoyaltyInfo {
address royaltyAddress;
uint96 royaltyBps;
Expand Down Expand Up @@ -97,7 +98,7 @@ contract BridgedTopShotMoments is
function supportsInterface(bytes4 interfaceId)
public
view
override(ERC721Upgradeable, ERC721EnumerableUpgradeable, ERC721URIStorageUpgradeable)
override(ERC721Upgradeable, ERC721EnumerableUpgradeable, ERC721URIStorageUpgradeable, IERC165)
returns (bool)
{
return interfaceId == type(IERC165).interfaceId || interfaceId == type(IERC721Metadata).interfaceId
Expand Down

0 comments on commit 86b876c

Please sign in to comment.