Skip to content

Commit

Permalink
refactor: improve isRecoveryQueueItem strictness (#2952)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamacook authored Dec 7, 2023
1 parent b695b80 commit c19e3b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/utils/transaction-guards.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@ export const isTransactionListItem = (value: TransactionListItem): value is Tran
}

export function isRecoveryQueueItem(value: TransactionListItem | RecoveryQueueItem): value is RecoveryQueueItem {
return 'args' in value
const EVENT_SIGNATURE = 'TransactionAdded(uint256,bytes32,address,uint256,bytes,uint8)'
return 'eventSignature' in value && value.eventSignature === EVENT_SIGNATURE
}

// Narrows `Transaction`
Expand Down

0 comments on commit c19e3b7

Please sign in to comment.