diff --git a/pkg/updater/updater.go b/pkg/updater/updater.go index 74a7acb..02b1ccf 100644 --- a/pkg/updater/updater.go +++ b/pkg/updater/updater.go @@ -152,7 +152,7 @@ func (u *Updater) Start(ctx context.Context) <-chan struct{} { return fmt.Errorf("failed to get commitment: %w", err) } - l2Block, err := u.l2Client.BlockByNumber(ctx, big.NewInt(int64(commitment.BlockNumber))) + l2Block, err := u.l2Client.BlockByNumber(ctx, new(big.Int).SetUint64(commitment.BlockNumber)) if err != nil { return fmt.Errorf("failed to get L2 Block: %w", err) }