CodeChain-io / CodeChain-io/codechain-primitives-js
PlatformAddress.check returns true with the invalid string
- Langage dominant
- TypeScript
- Étoiles
- 11
- Forks
- 9
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.