Skip to content

Commit 0154841

Browse files
authored
fix: add from u64 to metadatumlabel (#446)
Signed-off-by: bkioshn <[email protected]>
1 parent 513b090 commit 0154841

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

rust/cardano-blockchain-types/src/auxdata/metadatum_label.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,9 @@ impl Decode<'_, ()> for MetadatumLabel {
3838
Ok(Self(label))
3939
}
4040
}
41+
42+
impl From<u64> for MetadatumLabel {
43+
fn from(label: u64) -> Self {
44+
MetadatumLabel(label)
45+
}
46+
}

0 commit comments

Comments
 (0)