Skip to content

Commit

Permalink
Merge branch 'main' into to-psbtv0
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadouts committed Nov 24, 2024
2 parents 9852804 + 48da7df commit 86a322e
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions packages/caravan-wallets/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Changelog

## 0.4.4

### Patch Changes

- [#156](https://github.com/caravan-bitcoin/caravan/pull/156) [`a35893d`](https://github.com/caravan-bitcoin/caravan/commit/a35893d3f2733b8ba6661bc955713813daa3a75d) Thanks [@chadchapnick](https://github.com/chadchapnick)! - support regtest network in coldcard and custom interactions

## 0.4.3

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/caravan-wallets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@caravan/wallets",
"version": "0.4.3",
"version": "0.4.4",
"description": "Unchained Capital's HWI Library",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
Expand Down
6 changes: 5 additions & 1 deletion packages/caravan-wallets/src/coldcard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,11 @@ class ColdcardMultisigSettingsFileParser extends ColdcardInteraction {
bip32Path: string;
}) {
super();
if ([Network.MAINNET, Network.TESTNET].find((net) => net === network)) {
if (
[Network.MAINNET, Network.TESTNET, Network.REGTEST].find(
(net) => net === network
)
) {
this.network = network;
} else {
throw new Error("Unknown network.");
Expand Down
6 changes: 5 additions & 1 deletion packages/caravan-wallets/src/custom.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,11 @@ export class CustomExportExtendedPublicKey extends CustomInteraction {

constructor({ network, bip32Path }) {
super();
if ([Network.MAINNET, Network.TESTNET].find((net) => net === network)) {
if (
[Network.MAINNET, Network.TESTNET, Network.REGTEST].find(
(net) => net === network
)
) {
this.network = network;
} else {
throw new Error("Unknown network.");
Expand Down

0 comments on commit 86a322e

Please sign in to comment.