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…
Reference in New Issue