Skip to main content

function with msg.sender does not return address

Function returns null address in any case.

pragma solidity ^0.4.9;

contract Test {

address da;
function getSender () constant returns (address){
    da=msg.sender;
    return da;
}

}

Tried through myetherwallet and parity, network is not synchronized.

Aliev
  • 21
  • 2