Assert that an added introducer has certification capabilities
This commit is contained in:
@@ -45,6 +45,7 @@ pub async fn dispatch(cmd: IntroducerAddCommand, config: HuskConfigContainer) ->
|
|||||||
.filter_map(|c|
|
.filter_map(|c|
|
||||||
c.with_policy(policy, None).ok()
|
c.with_policy(policy, None).ok()
|
||||||
)
|
)
|
||||||
|
.filter(|vc| crypto::can_certify(vc))
|
||||||
.collect();
|
.collect();
|
||||||
|
|
||||||
if let Some(cert) = certs.first() {
|
if let Some(cert) = certs.first() {
|
||||||
|
|||||||
Reference in New Issue
Block a user