Skip to content

IDK WHATS THE ISSUE , THE COMPILER IS GIVING THIS ERROR CHECK BELOW #3161

Answered by devak07
TechnicallyKiller asked this question in Q&A
Discussion options

You must be logged in to vote

Hello!
You have to pass address of the owner to Ownable constructor.
Here is your updated constructor:
constructor() ERC20("DecentralisedSTC1", "DSTC") Ownable(msg.sender) {}

msg.sender can be every address that will have access to modifiers from Ownable contract etc.
You have to add at least one of modifiers/override functions from this Ownable contract

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EngrPips
Comment options

@TechnicallyKiller
Comment options

Answer selected by TechnicallyKiller
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants