i am new to solidity....i was following a tutorial but this error DeclarationError: Identifier not found or not unique. --> MyContract.sol:9:27: | 9 | function get() public views returns(string) { | ^^^^^
the code i tried to compile is
pragma solidity ^0.8.1;
contract MyContract {
string value;
function get() public views returns(string) {
return value;
}
}
can someone tell me why thanks