Skip to content

Commit

Permalink
solana-program: Make frozen-abi optional (#1222)
Browse files Browse the repository at this point in the history
* make frozen-abi optional in solana-program

* fix syntax error

* activate solana-program's frozen-abi feature in dev deps of program and sdk

* undo putting solana-program itself in solana-program dev deps

* add missing whitespace

Co-authored-by: Tyera <teulberg@gmail.com>

---------

Co-authored-by: Tyera <teulberg@gmail.com>
  • Loading branch information
2 people authored and joncinque committed Nov 1, 2024
1 parent d78af47 commit cf61905
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions interface/src/instruction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,12 @@ static_assertions::const_assert!(MAX_PERMITTED_DATA_LENGTH <= u32::MAX as u64);
static_assertions::const_assert_eq!(MAX_PERMITTED_DATA_LENGTH, 10_485_760);

/// An instruction to the system program.
#[frozen_abi(digest = "5e22s2kFu9Do77hdcCyxyhuKHD8ThAB6Q6dNaLTCjL5M")]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, AbiExample, AbiEnumVisitor)]
#[cfg_attr(
feature = "frozen-abi",
frozen_abi(digest = "5e22s2kFu9Do77hdcCyxyhuKHD8ThAB6Q6dNaLTCjL5M"),
derive(AbiExample, AbiEnumVisitor)
)]
#[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq)]
pub enum SystemInstruction {
/// Create a new account
///
Expand Down

0 comments on commit cf61905

Please sign in to comment.