Skip to content

Commit

Permalink
remove solana-program from transaction-context dev deps (solana-labs#…
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Dec 5, 2024
1 parent a53a876 commit b2a7a64
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion sdk/transaction-context/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ solana-signature = { workspace = true, optional = true }

[dev-dependencies]
solana-account-info = { workspace = true }
solana-program = { workspace = true }
solana-system-interface = { workspace = true }
solana-transaction-context = { path = ".", features = [
"dev-context-only-utils",
] }
Expand Down
8 changes: 4 additions & 4 deletions sdk/transaction-context/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,23 +22,23 @@ use {
},
};

// Inlined to avoid solana_program dep
// Inlined to avoid solana_system_interface dep
#[cfg(not(target_os = "solana"))]
const MAX_PERMITTED_DATA_LENGTH: u64 = 10 * 1024 * 1024;
#[cfg(test)]
static_assertions::const_assert_eq!(
MAX_PERMITTED_DATA_LENGTH,
solana_program::system_instruction::MAX_PERMITTED_DATA_LENGTH
solana_system_interface::MAX_PERMITTED_DATA_LENGTH
);

// Inlined to avoid solana_program dep
// Inlined to avoid solana_system_interface dep
#[cfg(not(target_os = "solana"))]
const MAX_PERMITTED_ACCOUNTS_DATA_ALLOCATIONS_PER_TRANSACTION: i64 =
MAX_PERMITTED_DATA_LENGTH as i64 * 2;
#[cfg(test)]
static_assertions::const_assert_eq!(
MAX_PERMITTED_ACCOUNTS_DATA_ALLOCATIONS_PER_TRANSACTION,
solana_program::system_instruction::MAX_PERMITTED_ACCOUNTS_DATA_ALLOCATIONS_PER_TRANSACTION
solana_system_interface::MAX_PERMITTED_ACCOUNTS_DATA_ALLOCATIONS_PER_TRANSACTION
);

// Inlined to avoid solana_account_info dep
Expand Down

0 comments on commit b2a7a64

Please sign in to comment.