From 85fc5ff6d5a53270d46782e0cdd45405c62e89d0 Mon Sep 17 00:00:00 2001 From: Singupalli Kartik Date: Wed, 4 Mar 2026 01:55:59 +0530 Subject: [PATCH] fix: Space calculation error in oracle-plugin-example --- .../en/smart-contracts/core/guides/oracle-plugin-example.md | 2 +- .../ja/smart-contracts/core/guides/oracle-plugin-example.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/en/smart-contracts/core/guides/oracle-plugin-example.md b/src/pages/en/smart-contracts/core/guides/oracle-plugin-example.md index 84625796..c67a69ec 100644 --- a/src/pages/en/smart-contracts/core/guides/oracle-plugin-example.md +++ b/src/pages/en/smart-contracts/core/guides/oracle-plugin-example.md @@ -110,7 +110,7 @@ pub struct Oracle { pub vault_bump: u8, } impl Space for Oracle { - const INIT_SPACE: usize = 8 + 5 + 1; + const INIT_SPACE: usize = 8 + 5 + 1+1; } ``` Let's discuss some of the choices made in creating this struct: diff --git a/src/pages/ja/smart-contracts/core/guides/oracle-plugin-example.md b/src/pages/ja/smart-contracts/core/guides/oracle-plugin-example.md index 8036437b..61b48d0f 100644 --- a/src/pages/ja/smart-contracts/core/guides/oracle-plugin-example.md +++ b/src/pages/ja/smart-contracts/core/guides/oracle-plugin-example.md @@ -110,7 +110,7 @@ pub struct Oracle { pub vault_bump: u8, } impl Space for Oracle { - const INIT_SPACE: usize = 8 + 5 + 1; + const INIT_SPACE: usize = 8 + 5 + 1+1; } ``` この構造体を作成する際の選択について説明しましょう: