diff --git a/src/mapper/map.rs b/src/mapper/map.rs index bd7a9303..c76d8355 100644 --- a/src/mapper/map.rs +++ b/src/mapper/map.rs @@ -502,9 +502,10 @@ impl EventWriter { committee_hot_credential: hot.into(), }) } - Certificate::ResignCommitteeCold(cold) => { + Certificate::ResignCommitteeCold(cold, anchor) => { CertificateRecord::ResignCommitteeCold(ResignCommitteeColdCertRecord { committee_cold_credential: cold.into(), + anchor: to_option_anchor_record(anchor), }) } Certificate::RegDRepCert(drep, coin, anchor) => { diff --git a/src/model.rs b/src/model.rs index df55fcfd..9f96af7b 100644 --- a/src/model.rs +++ b/src/model.rs @@ -374,6 +374,7 @@ pub struct AuthCommitteeHotCertRecord { #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, PartialOrd, Ord)] pub struct ResignCommitteeColdCertRecord { pub committee_cold_credential: StakeCredential, + pub anchor: Option, } #[derive(Serialize, Deserialize, Debug, Clone, PartialEq, Eq, PartialOrd, Ord)]