ethernaut
ethernaut copied to clipboard
A Ownable compile error
When I run the command yarn compile:contracts to compile these contracts, the terminal appeard this error:
error: modifier-style base constructor call without arguments
--> /Users/live/Desktop/learning/ethernaut/contracts/src/levels/BetHouse.sol:112:83
|
112 | constructor(string memory name_, string memory symbol_) ERC20(name_, symbol_) Ownable() {
| ^^^^^^^^^
|
what can I do?
No need to explicitly call Ownable(); Solidity will automatically call it.
No need to explicitly call Ownable(); Solidity will automatically call it.
So, once I remove it, the contract will compile successfully?