From 9503a62cf45a74392fa6ea45ae1773cfaf00e2f7 Mon Sep 17 00:00:00 2001 From: Justin Starry Date: Fri, 5 Apr 2024 02:47:18 +0000 Subject: [PATCH] impl abi --- sdk/src/reserved_account_keys.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/sdk/src/reserved_account_keys.rs b/sdk/src/reserved_account_keys.rs index 2102949b240f49..37867ff9d99047 100644 --- a/sdk/src/reserved_account_keys.rs +++ b/sdk/src/reserved_account_keys.rs @@ -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.