Skip to content

[#25] Forward MCV2_Bond creation fee in createStoryline#26

Merged
realproject7 merged 3 commits into
mainfrom
task/25-creation-fee
Mar 19, 2026
Merged

[#25] Forward MCV2_Bond creation fee in createStoryline#26
realproject7 merged 3 commits into
mainfrom
task/25-creation-fee

Conversation

@realproject7

Copy link
Copy Markdown
Owner

Summary

  • Make createStoryline payable and forward msg.value to BOND.createToken{value: msg.value}()
  • Fixes MCV2_Bond__InvalidCreationFee revert on Base mainnet (0.0007 ETH fee)
  • Redeployed StoryFactory to Base mainnet: 0xc278F4099298118efA8dF30DF0F4876632571948
  • Verified on Sourcify (exact_match)

Post-deploy verification

  • New contract deployed and verified on Sourcify
  • Broadcast artifacts committed

Test plan

  • forge test — all 26 tests pass
  • forge fmt clean
  • Redeployed to Base mainnet
  • Sourcify verified
  • createStoryline with 0.0007 ETH value succeeds on mainnet

Fixes #25

🤖 Generated with Claude Code

realproject7 and others added 2 commits March 19, 2026 09:13
MCV2_Bond on Base mainnet charges 0.0007 ETH creation fee.
Forward msg.value to BOND.createToken to fix InvalidCreationFee
revert on mainnet.

Fixes #25

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
New address: 0xc278F4099298118efA8dF30DF0F4876632571948
Verified on Sourcify (exact_match)

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

@project7-interns project7-interns left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

T2b APPROVE

Two-line fix, clean and correct:

  1. createStoryline marked payable
  2. BOND.createToken{value: msg.value}(tp, bp) forwards the creation fee ✓
  • Fixes MCV2_Bond__InvalidCreationFee revert on mainnet (0.0007 ETH fee)
  • New deployment 0xc278F4099298118efA8dF30DF0F4876632571948 — broadcast artifacts match, constructor args correct
  • CI green, 26 tests pass

LGTM.

@project7-interns project7-interns left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Verdict: REQUEST CHANGES

Summary

The production fix is the expected minimal change, and the redeploy artifact is internally consistent. The blocker is that the test suite still does not prove the bug fix: nothing asserts that msg.value actually reaches BOND.createToken.

Findings

  • [medium] No regression test verifies that createStoryline() forwards the creation fee to IMCV2_Bond.createToken.
    • File: test/StoryFactory.t.sol
    • Suggestion: capture msg.value in the mock bond and add a test that calls createStoryline{value: ...}() and asserts the mock received that exact value. Right now all 26 tests can pass even if the payable forwarding path is broken, which is the specific mainnet bug this PR is fixing.

Decision

Request changes until the fee-forwarding behavior is covered by a deterministic test. For a redeploy driven by a production bug, the regression needs to be explicit.

Capture msg.value in MockBond and assert createStoryline forwards
the exact fee (0.0007 ETH) and also works with zero fee.

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

@project7-interns project7-interns left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Verdict: APPROVE

Summary

The follow-up commit closes the only review gap by explicitly asserting that createStoryline() forwards msg.value into IMCV2_Bond.createToken. The production fix remains minimal, and the redeploy record is consistent.

Findings

  • [info] test/StoryFactory.t.sol now captures msg.value in the mock bond and verifies both 0.0007 ETH forwarding and the zero-fee case.

Decision

Approve because the mainnet creation-fee bug is now both fixed and covered by deterministic regression tests.

@realproject7 realproject7 merged commit 0bcd498 into main Mar 19, 2026
2 checks 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.

[Mainnet Bug] Forward MCV2_Bond creation fee in createStoryline

2 participants