Skip to content

[#239] Add contract_address filter to CLI status query#243

Merged
realproject7 merged 1 commit intomainfrom
task/239-cli-contract-filter
Mar 17, 2026
Merged

[#239] Add contract_address filter to CLI status query#243
realproject7 merged 1 commit intomainfrom
task/239-cli-contract-filter

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Added .eq("contract_address", STORY_FACTORY_ADDRESS.toLowerCase()) to CLI status Supabase query
  • Uses STORY_FACTORY_ADDRESS from @plotlink/sdk constants
  • Prevents returning data from wrong contract on storyline ID collisions

Test plan

  • plotlink status -s <id> returns data only from current contract
  • Query with non-existent storyline on current contract returns "not found"

Fixes #239

🤖 Generated with Claude Code

Scope CLI storyline lookup to current contract to prevent returning
data from the wrong contract on storyline ID collisions.

Fixes #239

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

The CLI status query now includes the missing contract_address filter and sources the address from @plotlink/sdk, which aligns the CLI lookup with the current contract context.

Findings

  • None. The query is now properly scoped to the active StoryFactory address.

Decision

Approving because the status command no longer risks returning storyline data from the wrong contract. CI was still pending at the time of review.

@realproject7 realproject7 merged commit 2a79b5e into main Mar 17, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug] CLI status command missing contract_address filter

2 participants