I am getting the following error while complining DeclarationError:
Identifier not found or not unique. unit storedData;
pragma solidity ^0.4.0;
//pragma solidity >=0.7.0 <0.9.0;
contract SimpleStorage {
unit storedData;
function set(unit x) public {
storedData = x;
}
function get() constant public returns (unit) {
return storedData;
}
function increment (unit n) public {
storedData = storedData + n;
return;
}