Skip to content

top-level tagged .cbor bytes treated as bytes #117

Closed
@rooooooooob

Description

@rooooooooob

The CDDL:

babbage_tx_out = {
    0 : address
  , 1 : value
  , ? 2 : datum_option
  , ? 3 : script_ref
}

script_ref = #6.24(bytes .cbor script)

is generating as:

pub type ScriptRef = Vec<u8>;

as if the .cbor is ignored in this specific case. It should be generating as a Script instance (serialized as bytes then tagged), or as a newtype (after #112)

Since we have a unit test that is like this but untagged it's likely the tag that's messing things up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions