From 89e37103af3a16dc2be6a8e3cecbd41b321b8583 Mon Sep 17 00:00:00 2001 From: Santiago Palladino Date: Mon, 30 Mar 2026 13:04:40 -0300 Subject: [PATCH] fix(archiver): swallow error when rollup contract not yet finalized on L1 Right after deployment, querying getProvenCheckpointNumber at the finalized L1 block fails because the contract didn't exist yet at that block. This is expected and should not log a warning. Co-Authored-By: Claude Opus 4.6 (1M context) --- yarn-project/archiver/src/modules/l1_synchronizer.ts | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/yarn-project/archiver/src/modules/l1_synchronizer.ts b/yarn-project/archiver/src/modules/l1_synchronizer.ts index cef612efe72f..872b462b0471 100644 --- a/yarn-project/archiver/src/modules/l1_synchronizer.ts +++ b/yarn-project/archiver/src/modules/l1_synchronizer.ts @@ -251,8 +251,11 @@ export class ArchiverL1Synchronizer implements Traceable { finalizedL1BlockNumber, }); } - } catch (err) { - this.log.warn(`Failed to update finalized checkpoint: ${err}`); + } catch (err: any) { + // The rollup contract may not exist at the finalized L1 block right after deployment. + if (!err?.message?.includes('returned no data')) { + this.log.warn(`Failed to update finalized checkpoint: ${err}`); + } } }