Skip to main content
formatting
Source Link
Aniket
  • 3.5k
  • 2
  • 21
  • 43

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; ^-------^

<br/

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

function transfer(address user) payable {
        var amount = msg.value;
        var sender = msg.sender;

What wrong i am doing ?

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 ?

I am getting this error while a contract compilation using online solidity compiler :
<br/

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 ?

edited title
Link
Aniket
  • 3.5k
  • 2
  • 21
  • 43

Error in msg.value during online contract compilation

Source Link
Aniket
  • 3.5k
  • 2
  • 21
  • 43

Error in msg.value online contract compilation

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 ?