Skip to content

Commit

Permalink
Use TransferStatusReady status for OP L2 to L1 withdrawals that need …
Browse files Browse the repository at this point in the history
…to be proven
  • Loading branch information
ogtownsend committed Jun 21, 2024
1 parent 0175a3b commit 8e87b3e
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,9 @@ func (l *l2ToL1Bridge) toPendingTransfers(
BridgeData: provePayload,
Stage: bridgecommon.StageRebalanceConfirmed,
},
Status: models.TransferStatusNotReady, // Needs to be proved before it can be finalized
// Both "prove" and "finalize" are handled by the "finalizeWithdrawalERC20" call in the
// OptimismL1BridgeAdapter, therefore we set the status to "Ready"
Status: models.TransferStatusReady,
ID: fmt.Sprintf("%s-%d", transfer.Raw.TxHash.Hex(), transfer.Raw.Index),
})
}
Expand Down

0 comments on commit 8e87b3e

Please sign in to comment.