From 1ed53f9928e20ecd1b47ecccb05a2cb3458ce4bd Mon Sep 17 00:00:00 2001 From: lisicky Date: Thu, 2 Nov 2023 19:45:39 +0800 Subject: [PATCH] map fix --- src/mapper/map.rs | 3 ++- src/model.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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)]