Skip to content

Commit

Permalink
impl abi
Browse files Browse the repository at this point in the history
  • Loading branch information
jstarry committed Apr 5, 2024
1 parent 2c71f80 commit e30fb17
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions sdk/src/reserved_account_keys.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ mod zk_token_proof_program {
solana_sdk::declare_id!("ZkTokenProof1111111111111111111111111111111");
}

// ReservedAccountKeys is not serialized into or deserialized from bank
// snapshots but the bank requires this trait to be implemented anyways.
#[cfg(RUSTC_WITH_SPECIALIZATION)]
impl ::solana_frozen_abi::abi_example::AbiExample for ReservedAccountKeys {
fn example() -> Self {
// ReservedAccountKeys is not Serialize so just rely on Default.
ReservedAccountKeys::default()
}
}

/// `ReservedAccountKeys` holds the set of currently active/inactive
/// account keys that are reserved by the protocol and may not be write-locked
/// during transaction processing.
Expand Down

0 comments on commit e30fb17

Please sign in to comment.