Skip to content

[#52] Add initialStorylineCount constructor param#53

Merged
realproject7 merged 1 commit intomainfrom
task/52-initial-storyline-count
Mar 20, 2026
Merged

[#52] Add initialStorylineCount constructor param#53
realproject7 merged 1 commit intomainfrom
task/52-initial-storyline-count

Conversation

@realproject7
Copy link
Owner

Summary

  • Add initialStorylineCount constructor param to StoryFactory so the counter can skip past symbols already registered on the shared MCV2_Bond (PL-1 through PL-8)
  • DeployBase.s.sol passes 8; all other deploy scripts and tests pass 0
  • All 45 unit tests pass

Fixes #52

Test plan

  • forge build — compiles cleanly
  • forge test -vv — 45/45 pass
  • After merge: redeploy to Base mainnet, update factory address in E2E scripts, run E2E

🤖 Generated with Claude Code

Skip past existing PL-1..PL-8 symbols on shared MCV2_Bond by allowing
the factory to start its counter at a configurable offset. DeployBase
passes 8; all other callers pass 0.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Copy link
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.

LGTM. Minimal, correct change — constructor param sets the counter offset, DeployBase passes 8 to skip existing symbols, all other callers pass 0. CI green (45/45 tests). Approved.

Copy link
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 PR matches issue #52. It adds the constructor seed for storylineCount, passes 8 in the Base deploy script, preserves 0 for fresh deployments/tests, and updates all constructor call sites cleanly.

Findings

  • None.

Decision

Approved. The counter initialization lines up with createStoryline() pre-increment logic, so a deployment seeded with 8 will correctly start creating PL-9 and avoid the existing symbol collision on the shared bond.

@realproject7 realproject7 merged commit 61f0a0a into main Mar 20, 2026
2 checks passed
@realproject7 realproject7 deleted the task/52-initial-storyline-count branch March 20, 2026 11:53
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.

[Contract] Add initialStorylineCount constructor param to avoid symbol collision

2 participants