Skip to content

Commit

Permalink
Variable rename and description update
Browse files Browse the repository at this point in the history
  • Loading branch information
tomaszslabon committed Oct 3, 2023
1 parent 5a6711b commit ba335fb
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions typescript/src/deposit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,8 @@ export type DepositRevealedEvent = Deposit & {
* @param bitcoinClient - Bitcoin client used to interact with the network.
* @param witness - If true, a witness (P2WSH) transaction will be created.
* Otherwise, a legacy P2SH transaction will be made.
* @param utxos - UTXOs to be used for funding the deposit transaction.
* @param inputUtxos - UTXOs to be used for funding the deposit transaction. So
* far only P2WPKH UTXO inputs are supported.
* @param fee - the value that should be subtracted from the sum of the UTXOs
* values and used as the transaction fee.
* @returns The outcome consisting of:
Expand All @@ -146,14 +147,14 @@ export async function submitDepositTransaction(
depositorPrivateKey: string,
bitcoinClient: BitcoinClient,
witness: boolean,
utxos: UnspentTransactionOutput[],
inputUtxos: UnspentTransactionOutput[],
fee: BigNumber
): Promise<{
transactionHash: TransactionHash
depositUtxo: UnspentTransactionOutput
}> {
const utxosWithRaw: (UnspentTransactionOutput & RawTransaction)[] = []
for (const utxo of utxos) {
for (const utxo of inputUtxos) {
const utxoRawTransaction = await bitcoinClient.getRawTransaction(
utxo.transactionHash
)
Expand Down

0 comments on commit ba335fb

Please sign in to comment.