Skip to content

Commit

Permalink
feat: remove sighash modification
Browse files Browse the repository at this point in the history
  • Loading branch information
Polybius93 committed Nov 7, 2024
1 parent ad34b57 commit 6023b83
Showing 1 changed file with 0 additions and 23 deletions.
23 changes: 0 additions & 23 deletions src/dlc-handlers/dfns-dlc-handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,14 +202,6 @@ export class DFNSDLCHandler {
vault.btcMintFeeBasisPoints.toBigInt()
);

createRangeFromLength(fundingTransaction.inputsLength).forEach(index => {
console.log('index', index);
fundingTransaction.updateInput(index, {
sighashType: 0x01,
});
console.log('input', fundingTransaction.getInput(index));
});

return fundingTransaction;
} catch (error: any) {
throw new Error(`Error creating Funding PSBT: ${error}`);
Expand Down Expand Up @@ -246,13 +238,6 @@ export class DFNSDLCHandler {
vault.btcRedeemFeeBasisPoints.toBigInt()
);

createRangeFromLength(withdrawTransaction.inputsLength).forEach(index => {
console.log('index', index);
withdrawTransaction.updateInput(index, {
sighashType: 0x01,
});
console.log('input', withdrawTransaction.getInput(index));
});
return withdrawTransaction;
} catch (error: any) {
throw new Error(`Error creating Withdraw PSBT: ${error}`);
Expand Down Expand Up @@ -288,14 +273,6 @@ export class DFNSDLCHandler {
vault.btcMintFeeBasisPoints.toBigInt()
);

createRangeFromLength(depositTransaction.inputsLength).forEach(index => {
console.log('index', index);
depositTransaction.updateInput(index, {
sighashType: 0x01,
});
console.log('input', depositTransaction.getInput(index));
});

return depositTransaction;
}

Expand Down

0 comments on commit 6023b83

Please sign in to comment.