CodeChain-io / CodeChain-io/codechain-primitives-js
PlatformAddress.check returns true with the invalid string
- Lenguaje dominante
- TypeScript
- Estrellas
- 11
- Forks
- 9
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Descripción
Because the logic of [PlatformAddress.check](https://github.com/CodeChain-io/codechain-primitives-js/blob/f90d068cc870b50061fde480f4e8c7b5e598e015/src/address/PlatformAddress.ts#L93) is different from [PlatformAddress.fromString](https://github.com/CodeChain-io/codechain-primitives-js/blob/f90d068cc870b50061fde480f4e8c7b5e598e015/src/address/PlatformAddress.ts#L72), `check` returns `true` for the invalid string.
For example, `cccqgfrg4ncjqfrg4ncjqfrg4ncjqfrg4ncjq2tpqzg` is not a valid platform address because the version is 2, but `check` returns true.
Guía de contribución
No hay ninguna guía de contribución indexada para este repositorio
Evaluación
Este issue todavía no se ha evaluado.