Skip to content

Commit

Permalink
fix: send inputs in check utxos analytics event
Browse files Browse the repository at this point in the history
  • Loading branch information
alter-eggo committed Mar 18, 2024
1 parent 0e0ca6f commit a61e498
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/app/query/bitcoin/transaction/use-check-utxos.ts
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ export function useCheckInscribedUtxos(blockTxAction?: () => void) {
if (hasInscribedUtxo) {
void analytics.track('utxos_includes_inscribed_one', {
txids,
inputs,
});
preventTransaction();
return true;
Expand All @@ -140,6 +141,7 @@ export function useCheckInscribedUtxos(blockTxAction?: () => void) {

void analytics.track('error_checking_utxos_from_ordinalscom', {
txids,
inputs,
});

const hasInscribedUtxo = await checkInscribedUtxosByBestinslot({
Expand All @@ -152,6 +154,7 @@ export function useCheckInscribedUtxos(blockTxAction?: () => void) {
if (hasInscribedUtxo) {
void analytics.track('utxos_includes_inscribed_one', {
txids,
inputs,
});
preventTransaction();
return true;
Expand Down

0 comments on commit a61e498

Please sign in to comment.