== can't compare a couple of identity values

Ok, hello everybody! I got one strange problem. Can someone help me?

In this if(msg.sender == leader && auctionStatus == Status.Ended) block i check if msg.sender equals an leader variable

if(msg.sender == leader && auctionStatus == Status.Ended){
    recipient = leader;
    value = bids[leader] - (price - step);
    usecase = "leader";
}

And i know auctionStatus equals Ended

But for some reason even if both variables: msg.sender and leader are definitely equals this comparsion returns false

Quote from “Solidity State” section of Debugger

  • leader: 0x4B20993BC481177EC7E8F571CECAE8A9E22C02DB address

Screenshot from log:

Hey! For help with Solidity usage issues please do not post in this forum! It is off-topic here.

You will get an answer much quicker by using the Solidity Gitter/Matrix chat. You can also consider checking out the Ethereum StackExchange.

Please check the welcome message before posting, it has all the relevant information. :slight_smile:

Closing this topic now.