fix: code review
This commit is contained in:
parent
8143d3bf52
commit
e607b7e223
|
@ -19,8 +19,7 @@ StatusModal {
|
||||||
property var store
|
property var store
|
||||||
|
|
||||||
function validate(communityKey) {
|
function validate(communityKey) {
|
||||||
const bytes32Len = 66;
|
return Utils.isPrivateKey(communityKey) && Utils.startsWith0x(communityKey)
|
||||||
return communityKey.length === bytes32Len && Utils.isHex(communityKey) && Utils.startsWith0x(communityKey)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
//% "Access existing community"
|
//% "Access existing community"
|
||||||
|
|
Loading…
Reference in New Issue