From da967ac4371ec6c5e729f844000a573711ebf213 Mon Sep 17 00:00:00 2001 From: hade Date: Fri, 13 Sep 2024 14:01:51 +0700 Subject: [PATCH] fix: add reg drep required wits --- chain/rust/src/builders/certificate_builder.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chain/rust/src/builders/certificate_builder.rs b/chain/rust/src/builders/certificate_builder.rs index 677ccd3d..8a0270a1 100644 --- a/chain/rust/src/builders/certificate_builder.rs +++ b/chain/rust/src/builders/certificate_builder.rs @@ -70,8 +70,8 @@ pub fn cert_required_wits(cert: &Certificate, required_witnesses: &mut RequiredW Certificate::ResignCommitteeColdCert(cert) => { required_witnesses.add_from_credential(cert.committee_cold_credential.clone()); } - Certificate::RegDrepCert(_cert) => { - // does not need a witness + Certificate::RegDrepCert(cert) => { + required_witnesses.add_from_credential(cert.drep_credential.clone()); } Certificate::UnregDrepCert(cert) => { required_witnesses.add_from_credential(cert.drep_credential.clone());