Skip to content

Commit

Permalink
fix: var name
Browse files Browse the repository at this point in the history
  • Loading branch information
tabshaikh committed Nov 13, 2024
1 parent 493e49a commit 8aa396f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions opsimulator/opsimulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -417,15 +417,15 @@ func (opSim *OpSimulator) checkInteropInvariants(ctx context.Context, logs []typ

if opSim.interopDelay != 0 {
// Add time check after getting the initiating message block header
executingBlockHeader, err := opSim.ethClient.HeaderByNumber(ctx, nil)
header, err := opSim.ethClient.HeaderByNumber(ctx, nil)
if err != nil {
return fmt.Errorf("failed to fetch executing block header: %w", err)
}

// Check if at least 5 seconds have passed
if executingBlockHeader.Time < identifierBlockHeader.Time+opSim.interopDelay {
if header.Time < identifierBlockHeader.Time+opSim.interopDelay {
return fmt.Errorf("not enough time has passed since initiating message (need 5s, got %ds)",
executingBlockHeader.Time-identifierBlockHeader.Time)
header.Time-identifierBlockHeader.Time)
}
}
}
Expand Down

0 comments on commit 8aa396f

Please sign in to comment.