Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
zjg555543 committed Jan 21, 2025
1 parent 9c3d812 commit e6e67ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sequencesender/txbuilder/banana_validium_xlayer.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package txbuilder

import (
"fmt"

"github.com/0xPolygon/cdk/etherman"
rpctypes "github.com/0xPolygon/cdk/rpc/types"
)
Expand All @@ -25,7 +25,7 @@ func (t *TxBuilderBananaValidium) checkMaxTimestamp(sequence etherman.SequenceBa
t.logger.Error("check rpc max timestamp error: ", err)
return err
}
if rpcBatch.LastL2BLockTimestamp() == sequence.MaxSequenceTimestamp {
if rpcBatch.LastL2BLockTimestamp() != sequence.MaxSequenceTimestamp {
t.logger.Error("max timestamp mismatch: ", rpcBatch.LastL2BLockTimestamp(), sequence.MaxSequenceTimestamp)
return fmt.Errorf("max timestamp mismatch: %v, %v", rpcBatch.LastL2BLockTimestamp(), sequence.MaxSequenceTimestamp)
}
Expand Down

0 comments on commit e6e67ec

Please sign in to comment.