0

I am getting this error at onlyOwner keyword function setRoyaltyInfo(address _receiver, uint96 _royaltyFeesInBips) public onlyOwner { royaltyAddress = _receiver; royaltyFeesInBips = _royaltyFeesInBips; }

1 Answer 1

2

Did you import Ownable.sol and inherit from the Ownable.sol contract ?

contract myContract is Ownable{
}
1
  • 1
    yes I forgot it. imported now and Thank you Apr 4, 2022 at 7:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.