Skip to content

Fix cm wizard collection plugins#120

Merged
MarkSackerberg merged 2 commits intomainfrom
fix/cm-wizard-collection-plugins
Apr 20, 2026
Merged

Fix cm wizard collection plugins#120
MarkSackerberg merged 2 commits intomainfrom
fix/cm-wizard-collection-plugins

Conversation

@MarkSackerberg
Copy link
Copy Markdown
Contributor

Fix collection plugins and guard parsing in CM wizard

  • Add plugin prompt (royalties, etc.) when creating a collection through cm create --wizard — previously skipped entirely
  • Fix BigInt crash when parsing small lamport values in guard config (sol(1/10**9) → lamports(1))
  • Auto-assign remaining royalty percentage to last creator instead of crashing

The CM wizard's createCollection method was missing plugin support
(e.g. royalties). Now prompts the user to select and configure
plugins when creating a collection through the wizard, using the
same plugin selector and configurator as core collection create.
The guard parser used sol(lamports / 10**9) which produces a float
for small values (e.g. 1 lamport → 1e-9) that can't convert to
BigInt. Now uses lamports() directly since the input is already
in lamports. Affects solPayment, botTax, freezeSolPayment, and
solFixedFee guards.
@coderabbitai
Copy link
Copy Markdown
Contributor

coderabbitai Bot commented Apr 16, 2026

Warning

Rate limit exceeded

@MarkSackerberg has exceeded the limit for the number of commits that can be reviewed per hour. Please wait 58 minutes and 53 seconds before requesting another review.

Your organization is not enrolled in usage-based pricing. Contact your admin to enable usage-based pricing to continue reviews beyond the rate limit, or try again in 58 minutes and 53 seconds.

⌛ How to resolve this issue?

After the wait time has elapsed, a review can be triggered using the @coderabbitai review command as a PR comment. Alternatively, push new commits to this PR.

We recommend that you space out your commits to avoid hitting the rate limit.

🚦 How do rate limits work?

CodeRabbit enforces hourly rate limits for each developer per organization.

Our paid plans have higher rate limits than the trial, open-source and free plans. In all cases, we re-allow further reviews after a brief timeout.

Please see our FAQ for further information.

ℹ️ Review info
⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

Run ID: 5fa46431-427e-4c0f-aa2b-23be838010c4

📥 Commits

Reviewing files that changed from the base of the PR and between df5a45d and 9e48611.

📒 Files selected for processing (3)
  • src/commands/cm/create.ts
  • src/lib/cm/jsonGuardParser.ts
  • src/prompts/pluginInquirer.ts
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch fix/cm-wizard-collection-plugins

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@MarkSackerberg MarkSackerberg merged commit 6bd7a33 into main Apr 20, 2026
4 of 5 checks passed
@MarkSackerberg MarkSackerberg deleted the fix/cm-wizard-collection-plugins branch April 20, 2026 11:33
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.

2 participants