HomePhabricator

[ecashaddrjs] Fix types for `isValidCashAddress`

Description

[ecashaddrjs] Fix types for isValidCashAddress

Summary: TypeScript gives an error when optionalPrefix in not defined when calling isValidCashAddress, this PR allows both undefined or explicit false for no prefixes, or a user passed string as prefix

Test Plan: npm test

Reviewers: bytesofman, Fabien, O1 Bitcoin ABC, #bitcoin_abc

Reviewed By: bytesofman, O1 Bitcoin ABC, #bitcoin_abc

Differential Revision: https://reviews.bitcoinabc.org/D16331

Details

Provenance
Andrea <andrea.lin3110@gmail.com>Authored on Jun 13 2024, 22:31
andreazllinPushed on Jun 16 2024, 17:28
Reviewer
Restricted Owners Package
Differential Revision
D16331: [ecashaddrjs] Fix types for `isValidCashAddress`
Parents
rABC100f7f1f8583: Revert "[chronik] Disable the Write Ahead Log for rocksdb"
Branches
Unknown
Tags
Unknown