@@ -334,7 +334,7 @@ func Test_baseFlow_getNextHeightAndPreviousLER(t *testing.T) {
334334 expectedHeight : 0 ,
335335 expectedLER : types .EmptyLER ,
336336 mockFn : func (mockLERQuerier * mocks.LERQuerier , mockStorage * mocks.AggSenderStorage ) {
337- mockLERQuerier .EXPECT ().GetLastLocalExitRoot ().Return (aggkitcommon . ZeroHash , nil )
337+ mockLERQuerier .EXPECT ().GetStartLER ().Return (types . EmptyLER , nil )
338338 },
339339 },
340340 {
@@ -343,17 +343,17 @@ func Test_baseFlow_getNextHeightAndPreviousLER(t *testing.T) {
343343 expectedHeight : 0 ,
344344 expectedLER : common .HexToHash ("0x1" ),
345345 mockFn : func (mockLERQuerier * mocks.LERQuerier , mockStorage * mocks.AggSenderStorage ) {
346- mockLERQuerier .EXPECT ().GetLastLocalExitRoot ().Return (common .HexToHash ("0x1" ), nil )
346+ mockLERQuerier .EXPECT ().GetStartLER ().Return (common .HexToHash ("0x1" ), nil )
347347 },
348348 },
349349 {
350350 name : "ler querier returns error" ,
351351 lastSentCert : nil ,
352352 expectedHeight : 0 ,
353353 expectedLER : aggkitcommon .ZeroHash ,
354- expectedError : "error getting last local exit root: some error" ,
354+ expectedError : "some error" ,
355355 mockFn : func (mockLERQuerier * mocks.LERQuerier , mockStorage * mocks.AggSenderStorage ) {
356- mockLERQuerier .EXPECT ().GetLastLocalExitRoot ().Return (common.Hash {}, errors .New ("some error" ))
356+ mockLERQuerier .EXPECT ().GetStartLER ().Return (common.Hash {}, errors .New ("some error" ))
357357 },
358358 },
359359 {
@@ -397,7 +397,7 @@ func Test_baseFlow_getNextHeightAndPreviousLER(t *testing.T) {
397397 expectedHeight : 0 ,
398398 expectedLER : types .EmptyLER ,
399399 mockFn : func (mockLERQuerier * mocks.LERQuerier , mockStorage * mocks.AggSenderStorage ) {
400- mockLERQuerier .EXPECT ().GetLastLocalExitRoot ().Return (types .EmptyLER , nil )
400+ mockLERQuerier .EXPECT ().GetStartLER ().Return (types .EmptyLER , nil )
401401 },
402402 },
403403 {
0 commit comments