Skip to content

Commit

Permalink
update totalBlocksSynchronized
Browse files Browse the repository at this point in the history
  • Loading branch information
zkcarter committed Dec 18, 2023
1 parent e4dd06f commit 82f59d2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/contracts/zklink.cairo
Original file line number Diff line number Diff line change
Expand Up @@ -856,6 +856,11 @@ mod Zklink {
)
);

// TODO: remove this when syncService supported
if self.syncService.read().is_zero() {
self.totalBlocksSynchronized.write(_lastCommittedBlockData.blockNumber);
}

self.end();
}

Expand Down

0 comments on commit 82f59d2

Please sign in to comment.