From c374ccffcc6abc4ce17ac13b350f1b7e404fb40b Mon Sep 17 00:00:00 2001 From: maskpp Date: Mon, 13 Jan 2025 11:52:12 +0800 Subject: [PATCH] check the latest l1 event header --- packages/taiko-client/driver/driver_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/taiko-client/driver/driver_test.go b/packages/taiko-client/driver/driver_test.go index 88d3b5c5520..0c43c65fabf 100644 --- a/packages/taiko-client/driver/driver_test.go +++ b/packages/taiko-client/driver/driver_test.go @@ -111,9 +111,11 @@ func (s *DriverTestSuite) TestCheckL1ReorgToHigherFork() { s.Nil(err) // Propose two L2 blocks - s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer()) + metadata := s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer()) + s.Equal(metadata.GetRawBlockHash(), s.d.state.GetL1Current().Hash()) - s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer()) + metadata = s.ProposeAndInsertValidBlock(s.p, s.d.ChainSyncer().BlobSyncer()) + s.Equal(metadata.GetRawBlockHash(), s.d.state.GetL1Current().Hash()) l1Head2, err := s.d.rpc.L1.HeaderByNumber(context.Background(), nil) s.Nil(err)