Skip to content

Commit

Permalink
fix: pubkey
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Dec 17, 2024
1 parent 191c867 commit 31eab30
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -73,8 +73,8 @@ export const BitcoinComponent: React.FC<BitcoinComponentProps> = ({ coreKitInsta
if (coreKitInstance) {
const localSigner: SignerAsync = createBitcoinJsSigner({ coreKitInstance, network: bitcoinNetwork });
setSigner(localSigner);
const bip340Signer: SignerAsync = createBitcoinJsSignerBip340({ coreKitInstance, network: bitcoinNetwork });
setBip340Signer(bip340Signer);
const localbip340Signer: SignerAsync = createBitcoinJsSignerBip340({ coreKitInstance, network: bitcoinNetwork });
setBip340Signer(localbip340Signer);
}
}, []);

Expand Down Expand Up @@ -117,7 +117,7 @@ export const BitcoinComponent: React.FC<BitcoinComponentProps> = ({ coreKitInsta
? payments.p2pkh({ pubkey: signer.publicKey, network: bitcoinNetwork })
: transactionType === "Segwit"
? payments.p2wpkh({ pubkey: signer.publicKey, network: bitcoinNetwork })
: payments.p2tr({ pubkey: bip340Signer.publicKey, network: bitcoinNetwork });
: payments.p2tr({ pubkey: bip340Signer.publicKey.subarray(1, 33), network: bitcoinNetwork });

const utxos = await fetchUtxos(account.address!);

Expand Down

0 comments on commit 31eab30

Please sign in to comment.