fix(communities): fix revealed addresses string comparisons (#3785)
This commit is contained in:
parent
f1db6d1615
commit
38ad5dd5d5
|
@ -762,7 +762,7 @@ func (m *Messenger) getAccountsToShare(addressesToReveal []string, airdropAddres
|
||||||
|
|
||||||
containsAddress := func(addresses []string, targetAddress string) bool {
|
containsAddress := func(addresses []string, targetAddress string) bool {
|
||||||
for _, address := range addresses {
|
for _, address := range addresses {
|
||||||
if address == targetAddress {
|
if types.HexToAddress(address) == types.HexToAddress(targetAddress) {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -797,7 +797,7 @@ func (m *Messenger) getAccountsToShare(addressesToReveal []string, airdropAddres
|
||||||
revealedAddress := gethcommon.HexToAddress(verifiedAccount.Address.Hex())
|
revealedAddress := gethcommon.HexToAddress(verifiedAccount.Address.Hex())
|
||||||
revealedAddresses = append(revealedAddresses, revealedAddress)
|
revealedAddresses = append(revealedAddresses, revealedAddress)
|
||||||
address := verifiedAccount.Address.Hex()
|
address := verifiedAccount.Address.Hex()
|
||||||
isAirdropAddress := address == airdropAddress
|
isAirdropAddress := types.HexToAddress(address) == types.HexToAddress(airdropAddress)
|
||||||
if airdropAddress == "" {
|
if airdropAddress == "" {
|
||||||
isAirdropAddress = i == 0
|
isAirdropAddress = i == 0
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue