Skip to content

Commit

Permalink
fixup! feat: added custom bitcoin regtest network option
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Sep 26, 2023
1 parent 7dc8f02 commit 842f90d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import BitcoinApp, { DefaultWalletPolicy } from 'ledger-bitcoin';

import { BitcoinNetworkModes, NetworkModes } from '@shared/constants';
import { BitcoinNetworkModes } from '@shared/constants';
import { createWalletIdDecoratedPath } from '@shared/crypto/bitcoin/bitcoin.utils';
import { getTaprootAccountDerivationPath } from '@shared/crypto/bitcoin/p2tr-address-gen';
import { getNativeSegwitAccountDerivationPath } from '@shared/crypto/bitcoin/p2wpkh-address-gen';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,6 @@ export function useMakeBitcoinNetworkSignersForPaymentType<T>(
paymentFn,
})({ accountIndex, addressIndex: zeroIndex });
},
[mainnetKeychainFn, paymentFn, testnetKeychainFn]
[mainnetKeychainFn, paymentFn, testnetKeychainFn, regtestKeychainFn]
);
}
1 change: 0 additions & 1 deletion src/app/store/networks/networks.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,6 @@ function getChainData(
chainId: ChainID,
url: string
): { stacksChainId: any; stacksUrl: any; bitcoinNetwork: any; bitcoinUrl: any } {
console.log('getChainData', id, chainId, url);
return id === 'bitcoin-regtest'
? {
stacksChainId: ChainID.Testnet,
Expand Down

0 comments on commit 842f90d

Please sign in to comment.