Exclude watch only accounts from permissions checks

This commit is contained in:
Andrea Maria Piana 2024-02-14 15:59:32 +00:00
parent e0814a488f
commit 27f0884b51
1 changed files with 3 additions and 1 deletions

View File

@ -3920,7 +3920,9 @@ func (m *Messenger) CheckPermissionsToJoinCommunity(request *requests.CheckPermi
}
for _, a := range accounts {
addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex()))
if a.IsWalletNonWatchOnlyAccount() {
addresses = append(addresses, gethcommon.HexToAddress(a.Address.Hex()))
}
}
} else {
for _, v := range request.Addresses {