op-stack: finalize withdraw fails with 'finalization period not elapsed' error #3027
Closed
1 task done
Labels
needs reproduction
Misc: Needs Reproduction
Check existing issues
Viem Version
2.21.25
Current Behavior
I am withdrawing ETH from a custom OP stack L2 back to Sepolia L1, following the steps here.
When finalizing the withdraw in the last step,
walletClientL1.finalizeWithdrawal
fails with a 'proven withdrawal finalization period has not elapsed' error. This error only shows up if triggering the finalize tx immediately after proving. Waiting ~10-20 secs and trying again fixes the error.Some other relevant details:
FINALIZATION_PERIOD_SECONDS
for the L2 is set to 12 secspublicClientL1.waitToFinalize
resolves correctly in the previous step, so the finalization period should already be elapsedExpected Behavior
The
finalizeWithdrawal()
tx shouldnt throw an error. it should work immediately after the prove tx is confirmed andwaitToFinalize
resolves.Steps To Reproduce
You can try it out using the bridge for our L2 devnet here. Please note this is a testnet running on Sepolia L1 and you will need to manually add the chain to your Metamask:
706114
Tohma
Link to Minimal Reproducible Example
http://147.182.131.12:3002/
Anything else?
No response
The text was updated successfully, but these errors were encountered: