Declaration error in remix writing a ERC20 Token

Using remix

I continue to get a * declarationerror : identifier not found or no unique
---> contracts/Token.sol:7:5:
7 | uint256 public approveddecimals = 18;
| ^^^^^^^

for my line of code here : unit256 public decimals = 18;

I'm very confused and stuck when trying to compile

Uint approvedecimals = 18;

Remove the public this a state variable

And also depends on how you use this variable in the smart contract that created the error

Oh! Thank You for this !!

1 Like