We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 358b640 commit 41ad87aCopy full SHA for 41ad87a
rust/cardano-blockchain-types/src/metadata/cip36/mod.rs
@@ -99,6 +99,7 @@ impl Cip36 {
99
/// * `is_catalyst_strict` - Is this a Catalyst strict registration?
100
///
101
/// # Returns
102
+ ///
103
/// None if the metadata is not in the block at given index.
104
105
/// # Errors
@@ -218,7 +219,10 @@ impl Cip36 {
218
219
}
220
221
- cip36_map.is_empty().then_some(cip36_map)
222
+ if cip36_map.is_empty() {
223
+ return None;
224
+ }
225
+ Some(cip36_map)
226
227
228
/// Get the `is_cip36` flag from the registration.
0 commit comments