I am getting this error at onlyOwner keyword function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner { royaltyAddress = _receiver; royaltyFeesInBips = _royaltyFeesInBips; }
1 Answer
Did you import Ownable.sol and inherit from the Ownable.sol contract ?
contract myContract is Ownable{
}
-
1