Skip to content

fix: Space calculation error in oracle-plugin-example - #466

Open
skartik-sk wants to merge 1 commit into
metaplex-foundation:mainfrom
skartik-sk:fix/Init-space
Open

fix: Space calculation error in oracle-plugin-example#466
skartik-sk wants to merge 1 commit into
metaplex-foundation:mainfrom
skartik-sk:fix/Init-space

Conversation

@skartik-sk

Copy link
Copy Markdown

There was Small error while calculating space in oracle-plugin-example docs.

Given :
8+5+1

Changed
8+5+1 +1

+1 for vault_bump:u8

@vercel

vercel Bot commented Mar 3, 2026

Copy link
Copy Markdown

@skartik-sk is attempting to deploy a commit to the Metaplex Foundation Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai

coderabbitai Bot commented Mar 3, 2026

Copy link
Copy Markdown
Contributor

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 3883a89 and 85fc5ff.

📒 Files selected for processing (2)
  • src/pages/en/smart-contracts/core/guides/oracle-plugin-example.md
  • src/pages/ja/smart-contracts/core/guides/oracle-plugin-example.md

Summary by CodeRabbit

Release Notes

  • Documentation
    • Updated Oracle smart contract example documentation to reflect an adjusted on-chain space allocation for Oracle accounts, with allocation increased by 1 byte.
    • Documentation updates provided in both English and Japanese versions.

Walkthrough

Updated the INIT_SPACE constant in Oracle Smart Contracts documentation from 8 + 5 + 1 to 8 + 5 + 1 + 1 across English and Japanese language versions, allocating one additional byte for Oracle account space.

Changes

Cohort / File(s) Summary
Oracle Documentation - INIT_SPACE Update
src/pages/en/smart-contracts/core/guides/oracle-plugin-example.md, src/pages/ja/smart-contracts/core/guides/oracle-plugin-example.md
Updated INIT_SPACE constant from 8 + 5 + 1 to 8 + 5 + 1 + 1, allocating 1 additional byte for Oracle account space allocation in both language versions.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

🚥 Pre-merge checks | ✅ 3
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title accurately describes the main change: fixing a space calculation error in the oracle-plugin-example documentation by adding 1 byte for vault_bump:u8.
Description check ✅ Passed The description is directly related to the changeset, explaining the space calculation error correction and the reason for adding an extra byte.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment

Tip

Try Coding Plans. Let us write the prompt for your AI agent so you can ship faster (with fewer bugs).
Share your feedback on Discord.


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.

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.

1 participant