Skip to content

Commit

Permalink
sdk: fix conditional borsh usage in compute_budget.rs (anza-xyz#2221)
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinheavey authored Jul 22, 2024
1 parent 32e8ad2 commit 0a0bb75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sdk/src/compute_budget.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ crate::declare_id!("ComputeBudget111111111111111111111111111111");

/// Compute Budget Instructions
#[cfg_attr(feature = "frozen-abi", derive(AbiExample, AbiEnumVisitor))]
#[derive(BorshDeserialize, BorshSerialize, Clone, Debug, Deserialize, PartialEq, Eq, Serialize)]
#[cfg_attr(feature = "borsh", derive(BorshSerialize, BorshDeserialize))]
#[derive(Clone, Debug, Deserialize, PartialEq, Eq, Serialize)]
pub enum ComputeBudgetInstruction {
Unused, // deprecated variant, reserved value.
/// Request a specific transaction-wide program heap region size in bytes.
Expand Down

0 comments on commit 0a0bb75

Please sign in to comment.