From 0269d15205add2d9e7d537fc3c7d7b45d58cff7d Mon Sep 17 00:00:00 2001 From: Ravi Sawlani <152961362+ravi-sawlani-yral@users.noreply.github.com> Date: Tue, 29 Oct 2024 21:44:09 +0530 Subject: [PATCH] fix: airdrop info struct in individual canister (#438) * fix --------- Co-authored-by: JoeruCodes --- .../individual_user_template/types/cdao/mod.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/shared_utils/src/canister_specific/individual_user_template/types/cdao/mod.rs b/src/lib/shared_utils/src/canister_specific/individual_user_template/types/cdao/mod.rs index 433b0360..2b630fe2 100644 --- a/src/lib/shared_utils/src/canister_specific/individual_user_template/types/cdao/mod.rs +++ b/src/lib/shared_utils/src/canister_specific/individual_user_template/types/cdao/mod.rs @@ -10,12 +10,15 @@ pub struct DeployedCdaoCanisters { pub root: Principal, pub swap: Principal, pub index: Principal, + + #[serde(default)] pub airdrop_info: AirdropInfo, } -#[derive(CandidType, PartialEq, Eq, Debug, Serialize, Deserialize, Clone)] +#[derive(CandidType, PartialEq, Eq, Debug, Serialize, Deserialize, Clone, Default)] pub struct AirdropInfo { /// Maps each principal to their claim status + #[serde(default)] pub principals_who_successfully_claimed: HashMap, }