From 6fb1e843cf05e1cf894a68ffd52c9cb89fd9496f Mon Sep 17 00:00:00 2001 From: Hadrien Croubois Date: Wed, 26 Jan 2022 17:35:05 +0100 Subject: [PATCH] Make royaltyInfo(uint256 _tokenId, uint256 _salePrice) virtual (#3133) * Make royaltyInfo(uint256 _tokenId, uint256 _salePrice) virtual Should be cherrypicked in release 4.5 * fix lint --- contracts/token/common/ERC2981.sol | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/contracts/token/common/ERC2981.sol b/contracts/token/common/ERC2981.sol index 56260a25a..f6617bbbb 100644 --- a/contracts/token/common/ERC2981.sol +++ b/contracts/token/common/ERC2981.sol @@ -40,7 +40,13 @@ abstract contract ERC2981 is IERC2981, ERC165 { /** * @inheritdoc IERC2981 */ - function royaltyInfo(uint256 _tokenId, uint256 _salePrice) external view override returns (address, uint256) { + function royaltyInfo(uint256 _tokenId, uint256 _salePrice) + external + view + virtual + override + returns (address, uint256) + { RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId]; if (royalty.receiver == address(0)) {