Skip to content

Commit

Permalink
Update variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
qgatssdev committed Jan 12, 2025
1 parent bf01dea commit 4b54439
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ const ReviewContent = function ({
}
: undefined,
status: getClaimStatus(),
txHash: deposit.claimTransactionHash,
txHash: deposit.confirmationTransactionHash,
})

steps.push(getDepositStep())
Expand Down
9 changes: 5 additions & 4 deletions webapp/hooks/useBtcTunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export const useConfirmBitcoinDeposit = function (
hemiWalletClient,
}),
mutationKey: [hemiClient, hemiWalletClient],
onSuccess: claimTransactionHash =>
updateDeposit(deposit, { claimTransactionHash }),
onSuccess: confirmationTransactionHash =>
updateDeposit(deposit, { confirmationTransactionHash }),
})

const {
Expand Down Expand Up @@ -83,7 +83,8 @@ export const useConfirmBitcoinDeposit = function (
return
}
updateDeposit(deposit, {
claimTransactionHash: confirmBitcoinDepositReceipt.transactionHash,
confirmationTransactionHash:
confirmBitcoinDepositReceipt.transactionHash,
status: BtcDepositStatus.BTC_DEPOSITED,
})
},
Expand All @@ -96,7 +97,7 @@ export const useConfirmBitcoinDeposit = function (
}
clearConfirmBitcoinDepositState()
// clear any previous transaction hash, which may come from failed attempts
updateDeposit(deposit, { claimTransactionHash: undefined })
updateDeposit(deposit, { confirmationTransactionHash: undefined })
confirmBitcoinDeposit()
}

Expand Down
2 changes: 1 addition & 1 deletion webapp/types/tunnel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ type DepositDirection = {
}

type BtcTransactionHash = {
claimTransactionHash?: Hash
confirmationTransactionHash?: Hash
transactionHash: BtcTransaction
}

Expand Down

0 comments on commit 4b54439

Please sign in to comment.