Skip to content

Commit a4335f4

Browse files
Use the encryption key value in the message
1 parent 2add588 commit a4335f4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

rust/rbac-registration/src/cardano/cip509/validation.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -267,10 +267,10 @@ pub fn validate_role_data(metadata: &Cip509RbacMetadata, report: &ProblemReport)
267267
fn validate_role_0(
268268
role: &RoleData, metadata: &Cip509RbacMetadata, context: &str, report: &ProblemReport,
269269
) {
270-
if role.encryption_key().is_some() {
270+
if let Some(key) = role.encryption_key() {
271271
report.invalid_value(
272272
"Role 0 encryption key",
273-
"<some value>",
273+
&format!("{key:?}"),
274274
"The role 0 shouldn't have the encryption key",
275275
context,
276276
);

0 commit comments

Comments
 (0)