Page MenuHomePhabricator

[ecashaddrjs] Fix types for `isValidCashAddress`
ClosedPublic

Authored by andreazllin on Jun 13 2024, 22:40.

Details

Reviewers
bytesofman
Fabien
Group Reviewers
Restricted Owners Package(Owns No Changed Paths)
Restricted Project
Commits
rABC481fcc4e5ce1: [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

Diff Detail

Repository
rABC Bitcoin ABC
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Owners added a reviewer: Restricted Owners Package.Jun 13 2024, 22:40
andreazllin edited the summary of this revision. (Show Details)

nice, thanks!

please

  • run npm version patch to bump the version number
  • update README.md #### Changelog section to describe the change

and will get this in

This revision now requires changes to proceed.Jun 13 2024, 23:33
andreazllin edited the summary of this revision. (Show Details)
  • Update package version
  • Add version to README.md Changelog
This revision is now accepted and ready to land.Jun 14 2024, 12:42

You can ping me on Telegram @bytesofman if you need support for landing this diff 🙏