Open mgild opened 2 months ago
In fact, just using an Option
#[derive(Clone, AnchorSerialize, AnchorDeserialize)]
pub struct StateSetConfigsParams {
pub new_authority: Option<Pubkey>,
pub min_quote_verify_votes: Option<u64>,
pub test_only_disable_mr_enclave_check: Option<u8>,
pub stake_pool: Option<Pubkey>,
pub stake_program: Option<Pubkey>,
- pub add_advisory: Option<Vec<u32>>,
- pub rm_advisory: Option<Vec<u32>>,
+ pub add_advisory: Option<u32>,
+ pub rm_advisory: Option<u32>,
}
Is it because of the Option<Vec<_>>
?
Or, could it be because this data structure potentially has multiple ways to be de/serialized by borsh
?
Above produces consistent deploy failure when used as instruciton parameter. Below succeeds