Skip to content

Commit bfc2e15

Browse files
committed
fix(cardano-blockchain-types): add comment on tag 259
Signed-off-by: bkioshn <[email protected]>
1 parent 1d600bd commit bfc2e15

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

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

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,8 @@ impl TransactionAuxData {
9696
fn decode_alonzo_plus_map(d: &mut minicbor::Decoder) -> Result<Self, minicbor::decode::Error> {
9797
match d.tag() {
9898
Ok(tag) => {
99+
// CBOR tag identifier 259 for auxiliary data in the Alonzo and beyond eras
100+
// https://github.com/IntersectMBO/cardano-ledger/blob/78b32d585fd4a0340fb2b184959fb0d46f32c8d2/eras/conway/impl/cddl-files/conway.cddl#L526
99101
if tag.as_u64() != 259 {
100102
return Err(minicbor::decode::Error::message(format!(
101103
"Invalid tag for Alonzo+ Aux Data. Expected 259, found {tag}."

0 commit comments

Comments
 (0)