sbtc-bridge-lib
Advanced tools
Comparing version 1.0.77 to 1.0.78
@@ -41,3 +41,3 @@ import * as btc from '@scure/btc-signer'; | ||
throw new Error('Taproot required'); | ||
//const fromBtcAddressScript = btc.Address(net).decode(peginRequest.fromBtcAddress); | ||
//const fromBtcAddressScript = btc.Address(net).decode(peginRequest.uiPayload.bitcoinAddress); | ||
//if (fromBtcAddressScript.type !== 'tr') throw new Error('Taproot required') | ||
@@ -135,3 +135,3 @@ const commitAddressScript = btc.Address(net).decode(peginRequest.commitTxScript.address); | ||
const feeUtxo = addInputForFee(tx); | ||
amount = peginRequest.amount + feeUtxo?.value - fee; | ||
amount = peginRequest.uiPayload.amountSats + feeUtxo?.value - fee; | ||
} | ||
@@ -138,0 +138,0 @@ */ |
{ | ||
"name": "sbtc-bridge-lib", | ||
"version": "1.0.77", | ||
"version": "1.0.78", | ||
"description": "Library for sBTC Bridge web client and API apps ", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -34,3 +34,3 @@ import * as btc from '@scure/btc-signer'; | ||
if (sbtcWalletAddrScript.type !== 'tr') throw new Error('Taproot required') | ||
//const fromBtcAddressScript = btc.Address(net).decode(peginRequest.fromBtcAddress); | ||
//const fromBtcAddressScript = btc.Address(net).decode(peginRequest.uiPayload.bitcoinAddress); | ||
//if (fromBtcAddressScript.type !== 'tr') throw new Error('Taproot required') | ||
@@ -133,3 +133,3 @@ | ||
const feeUtxo = addInputForFee(tx); | ||
amount = peginRequest.amount + feeUtxo?.value - fee; | ||
amount = peginRequest.uiPayload.amountSats + feeUtxo?.value - fee; | ||
} | ||
@@ -136,0 +136,0 @@ */ |
185970