Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Pass correct value to the `validate` function from `bitcoin-address-validation` package. The `toBcoinNetwork` function from `tbtc-v2.ts` lib returns the network as string expected by the `bcoin` lib(meaning `main` or `testnet`). The `bitcoin-address-validation` package expects `mainnet` or `testnet` that match the enumerated `BitcoinNetwork` values from `tbtc-v2.ts` lib. Here we call `valuesOf` on the `BitcoinNetwork` enum to get the expected network as string by the `bitcoin-address-validation` package.
- Loading branch information