mirror of
https://github.com/status-im/status-go.git
synced 2025-02-16 08:50:09 +00:00
fix: prevent nil dereference in IsControlNode
for existing communities
This commit is contained in:
parent
05db628406
commit
fc8ce915af
@ -1086,7 +1086,7 @@ func (o *Community) ValidateEditSharedAddresses(signer *ecdsa.PublicKey, request
|
||||
|
||||
// We treat control node as an owner with community key
|
||||
func (o *Community) IsControlNode() bool {
|
||||
return o.config.PrivateKey != nil && o.config.PrivateKey.PublicKey.Equal(o.config.ControlNode)
|
||||
return o.config.PrivateKey != nil && o.config.PrivateKey.PublicKey.Equal(o.ControlNode())
|
||||
}
|
||||
|
||||
func (o *Community) IsOwnerWithoutCommunityKey() bool {
|
||||
|
Loading…
x
Reference in New Issue
Block a user