diff --git a/Cargo.lock b/Cargo.lock index 0117d3de0001c5..408ba1c2e48172 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -5410,11 +5410,9 @@ version = "2.1.0" dependencies = [ "bincode", "serde", - "solana-program", "solana-program-error", "solana-program-memory", "solana-pubkey", - "static_assertions", ] [[package]] diff --git a/sdk/account-info/Cargo.toml b/sdk/account-info/Cargo.toml index a1e9cabd437030..55dc3d8a30ef44 100644 --- a/sdk/account-info/Cargo.toml +++ b/sdk/account-info/Cargo.toml @@ -16,10 +16,6 @@ solana-program-error = { workspace = true } solana-program-memory = { workspace = true } solana-pubkey = { workspace = true, default-features = false } -[dev-dependencies] -solana-program = { workspace = true } -static_assertions = { workspace = true } - [features] bincode = ["dep:bincode", "dep:serde"] diff --git a/sdk/account-info/src/lib.rs b/sdk/account-info/src/lib.rs index 267497a42af64d..70c9ef60133d8f 100644 --- a/sdk/account-info/src/lib.rs +++ b/sdk/account-info/src/lib.rs @@ -15,11 +15,6 @@ pub mod debug_account_data; // inline from solana_program::entrypoint const MAX_PERMITTED_DATA_INCREASE: usize = 1_024 * 10; -#[cfg(test)] -static_assertions::const_assert_eq!( - MAX_PERMITTED_DATA_INCREASE, - solana_program::entrypoint::MAX_PERMITTED_DATA_INCREASE -); /// Account information #[derive(Clone)] diff --git a/sdk/program/src/entrypoint.rs b/sdk/program/src/entrypoint.rs index 3197f7e040103a..8b6dd21e392abc 100644 --- a/sdk/program/src/entrypoint.rs +++ b/sdk/program/src/entrypoint.rs @@ -257,6 +257,7 @@ unsafe impl std::alloc::GlobalAlloc for BumpAllocator { } } +// WARNING: if this is changed, the duplicate definition in solana_account_info must also be changed /// Maximum number of bytes a program may add to an account during a single realloc pub const MAX_PERMITTED_DATA_INCREASE: usize = 1_024 * 10;