Skip to content

Commit

Permalink
dev: comments
Browse files Browse the repository at this point in the history
  • Loading branch information
dewanshparashar committed Mar 10, 2025
1 parent ff6e400 commit f09347d
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@ export async function getUpdatedTeleportTransfer(
...tx,
status,
timestampResolved,
l1ToL2MsgData,
l1ToL2MsgData, // note: in contrast to general deposits which use `parentToChildMsgData`, Teleport transfers still follow L1/L2/L3 terminology, so we have `l1ToL2MsgData` and `l2ToL3MsgData`
l2ToL3MsgData
}

Expand Down
2 changes: 2 additions & 0 deletions packages/arb-token-bridge-ui/src/state/app/state.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ export interface MergedTransaction {
}

export interface TeleporterMergedTransaction extends MergedTransaction {
// note: in contrast to general deposits which use `parentToChildMsgData`,
// Teleport transfers still follow L1/L2/L3 terminology, so we have `l1ToL2MsgData` and `l2ToL3MsgData`
l1ToL2MsgData?: ParentToChildMessageData
l2ToL3MsgData: L2ToL3MessageData
}
Expand Down
5 changes: 4 additions & 1 deletion packages/arb-token-bridge-ui/src/state/app/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,10 @@ export const getDepositStatus = (
}

if (isTeleportTx(tx)) {
const { l2ToL3MsgData, l1ToL2MsgData } = tx
// note: in contrast to general deposits which use `parentToChildMsgData`
// teleport transfers still follow L1/L2/L3 terminology, so we have `l1ToL2MsgData` and `l2ToL3MsgData`

const { l1ToL2MsgData, l2ToL3MsgData } = tx

// if any of the retryable info is missing, first fetch might be pending
if (!l1ToL2MsgData || !l2ToL3MsgData) return DepositStatus.L2_PENDING
Expand Down

0 comments on commit f09347d

Please sign in to comment.