this is my contract code
pragma solidity ^0.4.4;
contract IamHongKongTokenBack_00{
// 現在我錢包的地址+Eth量
function SeeMyAddAndETHVar() public constant returns (address, uint) {
address _myadd = msg.sender;
return ( _myadd, _myadd.balance);
}
// 查看其他地址的Eth量
function SeeSheEthVar(address _InputAdd) public constant returns (address, uint) {
address _SheAc = _InputAdd;
return (_SheAc, _SheAc.balance);
}
}
the SeeMyAddAndETHVar
is use see my address and ETH amount
and SeeSheEthVar
is use input address and see this address and ETH amount
If i use 0X123... address go to this contract now i use the SeeSheEthVar Input address 0X789... i can see the correct address and correct ETH amount
but use SeeMyAddAndETHVar i will see the correct address and error ETH amount
so strange
When I change use 0X789... address go to this contract
i will can see 0X123... correct address and correct ETH amount
but 0X789... address is both error ETH amount
May I ask where my problem is Thanks for answer~!!