I am trying to import the ERC2981.sol from the OpenZeppelin contracts repository. In their GitHub page the royaltyInfo
is a public
function. But for some reason when I import it in my project, this function is external
. This is the function (which is public):
But on Remix this is what it looks like and is external
(inside .debs/npm/@openzeppelin/[email protected]/token/commonERC2981.sol
)
And this is how I import it:
pragma solidity ^0.8.0;
import "@openzeppelin/[email protected]/token/common/ERC2981.sol";
And I am using 0.8.7+commit.e28d00a7
as a solidity compiler in Remix.
My question is: How can I resolve this issue? I can change the external
to public
in my hardhat deployment but I don't like to do this (changing manually).