CodeChain-io / CodeChain-io/codechain-primitives-js
PlatformAddress.check returns true with the invalid string
- Ngôn ngữ chính
- TypeScript
- Star
- 11
- Fork
- 9
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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.
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Đánh giá
Issue này chưa được đánh giá.