@@ -18,6 +18,7 @@ abstract contract Royalty is IRoyalty {
1818 external
1919 view
2020 virtual
21+ override
2122 returns (address receiver , uint256 royaltyAmount )
2223 {
2324 (address recipient , uint256 bps ) = getRoyaltyInfoForToken (tokenId);
@@ -26,7 +27,7 @@ abstract contract Royalty is IRoyalty {
2627 }
2728
2829 /// @dev Returns the royalty recipient and bps for a particular token Id.
29- function getRoyaltyInfoForToken (uint256 _tokenId ) public view returns (address , uint16 ) {
30+ function getRoyaltyInfoForToken (uint256 _tokenId ) public view override returns (address , uint16 ) {
3031 RoyaltyInfo memory royaltyForToken = royaltyInfoForToken[_tokenId];
3132
3233 return
@@ -36,12 +37,12 @@ abstract contract Royalty is IRoyalty {
3637 }
3738
3839 /// @dev Returns the default royalty recipient and bps.
39- function getDefaultRoyaltyInfo () external view returns (address , uint16 ) {
40+ function getDefaultRoyaltyInfo () external view override returns (address , uint16 ) {
4041 return (royaltyRecipient, uint16 (royaltyBps));
4142 }
4243
4344 /// @dev Lets a contract admin update the default royalty recipient and bps.
44- function setDefaultRoyaltyInfo (address _royaltyRecipient , uint256 _royaltyBps ) public {
45+ function setDefaultRoyaltyInfo (address _royaltyRecipient , uint256 _royaltyBps ) public override {
4546 require (_canSetRoyaltyInfo (), "Not authorized " );
4647 require (_royaltyBps <= 10_000 , "Exceeds max bps " );
4748
@@ -56,7 +57,7 @@ abstract contract Royalty is IRoyalty {
5657 uint256 _tokenId ,
5758 address _recipient ,
5859 uint256 _bps
59- ) external {
60+ ) external override {
6061 require (_canSetRoyaltyInfo (), "Not authorized " );
6162 require (_bps <= 10_000 , "Exceeds max bps " );
6263
0 commit comments