CodeChain-io / CodeChain-io/codechain-primitives-js
PlatformAddress.check returns true with the invalid string
- Lingua principale
- TypeScript
- Stelle
- 11
- Fork
- 9
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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.
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Valutazione
Questa issue non è ancora stata valutata.