Skip to content

Commit

Permalink
Avoid casting to determine confirmation state when mapping staking tr…
Browse files Browse the repository at this point in the history
…ansactions (#1872)
  • Loading branch information
iamacook authored Aug 29, 2024
1 parent f7d8353 commit 8671b32
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -322,10 +322,10 @@ export class MultisigTransactionInfoMapper {
}

try {
const tx = transaction as MultisigTransaction;
const isConfirmed =
!!tx.confirmations &&
tx.confirmations.length >= tx.confirmationsRequired;
'confirmations' in transaction &&
!!transaction.confirmations &&
transaction.confirmations.length >= transaction.confirmationsRequired;

return await this.nativeStakingMapper.mapDepositInfo({
chainId,
Expand Down

0 comments on commit 8671b32

Please sign in to comment.