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 b706cb8 commit 7dc8f02
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/common/hooks/use-bitcoin-contracts.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ export function useBitcoinContracts() {
const getNativeSegwitSigner = useCurrentAccountNativeSegwitSigner();
const currentIndex = useCurrentAccountIndex();
const nativeSegwitPrivateKeychain = useNativeSegwitAccountBuilder()?.(currentIndex);
const currentNetwork = useCurrentNetwork();

async function getBitcoinContractInterface(
attestorURLs: string[]
Expand All @@ -73,7 +74,6 @@ export function useBitcoinContracts() {
const currentBitcoinNetwork = bitcoinAccountDetails.network;
const currentAddress = bitcoinAccountDetails.address;
const currentAccountIndex = extractAddressIndexFromPath(bitcoinAccountDetails.derivationPath);
const currentNetwork = useCurrentNetwork();

const currentAddressPrivateKey = deriveAddressIndexKeychainFromAccount(
nativeSegwitPrivateKeychain.keychain
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ interface GetPolicyForPaymentTypeFactoryArgs {
interface GetExtendedPublicKeyFactoryArgs {
bitcoinApp: BitcoinApp;
fingerprint: string;
network: NetworkModes;
network: BitcoinNetworkModes;
accountIndex: number;
}
function getPolicyForPaymentType({
Expand Down Expand Up @@ -52,7 +52,7 @@ const getTaprootExtendedPublicKey = getPolicyForPaymentType({

interface PullBitcoinKeysFromLedgerDeviceArgs {
onRequestKey?(keyIndex: number): void;
network: NetworkModes;
network: BitcoinNetworkModes;
}
export function pullBitcoinKeysFromLedgerDevice(bitcoinApp: BitcoinApp) {
return async ({ onRequestKey, network }: PullBitcoinKeysFromLedgerDeviceArgs) => {
Expand Down

0 comments on commit 7dc8f02

Please sign in to comment.