Skip to content

Commit d2832ca

Browse files
authored
make ERC2981:royaltyInfo public (OpenZeppelin#3305)
1 parent 2bd75a4 commit d2832ca

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
# Changelog
22

3+
## Unreleased
4+
* `ERC2981`: make `royaltiInfo` public to allow super call in overrides. ([#3305](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3305))
5+
36
## Unreleased
47

58
* `crosschain`: Add a new set of contracts for cross-chain applications. `CrossChainEnabled` is a base contract with instantiations for several chains and bridges, and `AccessControlCrossChain` is an extension of access control that allows cross-chain operation. ([#3183](https://github.com/OpenZeppelin/openzeppelin-contracts/pull/3183))

contracts/token/common/ERC2981.sol

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,7 @@ abstract contract ERC2981 is IERC2981, ERC165 {
4040
/**
4141
* @inheritdoc IERC2981
4242
*/
43-
function royaltyInfo(uint256 _tokenId, uint256 _salePrice)
44-
external
45-
view
46-
virtual
47-
override
48-
returns (address, uint256)
49-
{
43+
function royaltyInfo(uint256 _tokenId, uint256 _salePrice) public view virtual override returns (address, uint256) {
5044
RoyaltyInfo memory royalty = _tokenRoyaltyInfo[_tokenId];
5145

5246
if (royalty.receiver == address(0)) {

0 commit comments

Comments
 (0)