I am getting this error while a contract compilation using online solidity compiler :
Untitled:23:19: Error: Member "value" not found or not visible after argument-dependent lookup in string storage pointer - did you forget the "payable" modifier? var amount = msg.value; ^-------^
Contract code is like this :
function transfer(address user) payable {
var amount = msg.value;
var sender = msg.sender;
What wrong i am doing ?
contract X {}
.