Skip to content

Commit 04d810d

Browse files
Fix after merge
1 parent 3b117f9 commit 04d810d

File tree

2 files changed

+1
-9
lines changed

2 files changed

+1
-9
lines changed

rust/cardano-blockchain-types/src/metadata/cip36/key_registration.rs

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,10 +146,6 @@ impl Decode<'_, ProblemReport> for Cip36KeyRegistration {
146146
Ok(cip36_key_registration)
147147
}
148148
}
149-
"Redundant key found in item {} in RBAC map",
150-
index.saturating_add(1)
151-
)
152-
.as_str(),
153149

154150
/// Helper function for decoding the voting key.
155151
///

rust/catalyst-types/src/cbor_utils.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,7 @@ pub fn report_duplicated_key<T: Debug + PartialEq>(
1313
if found_keys.contains(key) {
1414
report.duplicate_field(
1515
format!("{key:?}").as_str(),
16-
format!("Redundant key found in item {}", index + 1).as_str(),
17-
"Redundant key found in item {} in RBAC map",
18-
index.saturating_add(1)
19-
)
20-
.as_str(),
16+
format!("Redundant key found in item {}", index.saturating_add(1)).as_str(),
2117
context,
2218
);
2319
return true;

0 commit comments

Comments
 (0)