From 38ad5dd5d5cc8b35ef090c6f58e2aa00ff55bb25 Mon Sep 17 00:00:00 2001 From: Jonathan Rainville Date: Mon, 24 Jul 2023 09:17:12 -0400 Subject: [PATCH] fix(communities): fix revealed addresses string comparisons (#3785) --- protocol/messenger_communities.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/protocol/messenger_communities.go b/protocol/messenger_communities.go index 3ba9c2bd1..fdb6b88c1 100644 --- a/protocol/messenger_communities.go +++ b/protocol/messenger_communities.go @@ -762,7 +762,7 @@ func (m *Messenger) getAccountsToShare(addressesToReveal []string, airdropAddres containsAddress := func(addresses []string, targetAddress string) bool { for _, address := range addresses { - if address == targetAddress { + if types.HexToAddress(address) == types.HexToAddress(targetAddress) { return true } } @@ -797,7 +797,7 @@ func (m *Messenger) getAccountsToShare(addressesToReveal []string, airdropAddres revealedAddress := gethcommon.HexToAddress(verifiedAccount.Address.Hex()) revealedAddresses = append(revealedAddresses, revealedAddress) address := verifiedAccount.Address.Hex() - isAirdropAddress := address == airdropAddress + isAirdropAddress := types.HexToAddress(address) == types.HexToAddress(airdropAddress) if airdropAddress == "" { isAirdropAddress = i == 0 }