TypeError: Data location must be "memory" or "calldata" for return parameter in function, but none was given. --> contracts/test.sol:12:48: | 12 | function getsomename() public view returns(string){ | ^^^^^^
THis is the error and i am not able to send the sorce code for some reason so ANy suggestions?
I passed string memory _name in function parameter still did not help
Apr 27, 2021, 9:21 AM
it should be
function getsomename() public view returns(string memory)
function getsomename() public view returns(string memory)
Apr 27, 2021, 9:25 AM
Oh yeah thanks got it in the tutorial that i was watching he did not pass memory but it still worked looks like i am watching an old one
Apr 27, 2021, 9:29 AM