Skip to content

Commit

Permalink
fix: airdrop info struct in individual canister (#438)
Browse files Browse the repository at this point in the history
* fix

---------

Co-authored-by: JoeruCodes <[email protected]>
  • Loading branch information
ravi-sawlani-yral and JoeruCodes authored Oct 29, 2024
1 parent 95e2bbc commit 0269d15
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Principal, ClaimStatus>,
}

Expand Down

0 comments on commit 0269d15

Please sign in to comment.