IDK WHATS THE ISSUE , THE COMPILER IS GIVING THIS ERROR CHECK BELOW #3161
Answered
by
devak07
TechnicallyKiller
asked this question in
Q&A
-
contract DecentralisedSTC is ERC20Burnable, Ownable {
} |
Beta Was this translation helpful? Give feedback.
Answered by
devak07
Jan 2, 2025
Replies: 1 comment 2 replies
-
Hello! msg.sender can be every address that will have access to modifiers from Ownable contract etc. |
Beta Was this translation helpful? Give feedback.
2 replies
Answer selected by
TechnicallyKiller
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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