Skip to content

[Bug] CLI status command missing contract_address filter #239

@realproject7

Description

@realproject7

Problem

PR #234 added contract_address filtering to all frontend queries but missed the CLI status command in packages/cli/src/commands/status.ts (line ~44-48):

const { data } = await supabase
  .from("storylines")
  .select("plot_count, last_plot_time, ...")
  .eq("storyline_id", Number(storylineId))
  .single();

Without the filter, the CLI could return data from the wrong contract.

Fix

Add .eq("contract_address", STORY_FACTORY_ADDRESS.toLowerCase()) to the query. Use the constant from packages/sdk/src/constants.ts.

Files

  • packages/cli/src/commands/status.ts

Acceptance Criteria

  • CLI status query scoped to current contract

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions