Original post:

original post

Sorry I just found out this way it actually works. But the problem is when I trying to look up address manually, not by msg.sender.


mapping (address => uint) count;

function set() public{
    count[address(0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe)] = 3;

function get(address _address) public view returns(uint){
    return count[_address];

I called set function and when I pasted the same address into get function the result was 0.

Smart contract screenshot


Debug screenshot

  • 1
    You should add your source code
    – Gabe
    Mar 19, 2018 at 14:34
  • The 20-byte address code would be packed into a 32-byte word, possibly with other data depending on the contract and what the compiler decides to do with it. It's not clear why you're working at this level or why it's a problem, when Solidity will happily decode it for you. Please include your contract. Mar 19, 2018 at 14:56

1 Answer 1


Add the address in the field with quotation marks "0xde0B295669a9FD93d5F28D9Ec85E40f4cb697BAe"

It works for me.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.