Skip to content

Commit bbc7867

Browse files
committed
Fix address validation
1 parent bf19cc6 commit bbc7867

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

services/utils/general.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ export function validateCelestiaAddress(address) {
9898
if (!address.startsWith(prefix)) return false
9999

100100
const hashPart = address.slice(prefix.length)
101-
if (hashPart.length !== 38) return false
101+
if (hashPart.length < 38 || hashPart.length > 119) return false
102102

103103
const validChars = /^[qpzry9x8gf2tvdw0s3jn54khce6mua7l]+$/
104104
if (!validChars.test(hashPart)) return false

0 commit comments

Comments
 (0)