mirror of
https://github.com/status-im/status-desktop.git
synced 2025-02-22 03:28:52 +00:00
fix(communities) validate privkey when importing a community
Fixes #5346
This commit is contained in:
parent
56b182c50b
commit
8143d3bf52
@ -19,7 +19,8 @@ StatusModal {
|
||||
property var store
|
||||
|
||||
function validate(communityKey) {
|
||||
return communityKey.trim() !== ""
|
||||
const bytes32Len = 66;
|
||||
return communityKey.length === bytes32Len && Utils.isHex(communityKey) && Utils.startsWith0x(communityKey)
|
||||
}
|
||||
|
||||
//% "Access existing community"
|
||||
|
Loading…
x
Reference in New Issue
Block a user