Skip to content

RedeemerTag for certificates is CERT rather than CERTIFICATE #387

Closed
@SCMusson

Description

@SCMusson

Describe the bug
Getting this error trying to build a registration and delegation stake transaction using a staking script:

pycardano.exception.TransactionBuilderException: Cannot find execution unit for redeemer: {
  'data': 0,
  'ex_units': {'mem': 0, 'steps': 0},
  'index': 1,
  'tag': {
    '__objclass__': <enum 'RedeemerTag'>,
    '_name_': 'CERT',
    '_sort_order_': 2,
    '_value_': 2,
  },
} in estimated execution units: {'certificate:1': {'mem': 36122, 'steps': 6633740}}

BlockFrostChainContext is the ChainContext I'm using here, I'm not sure if the backend will change things.

I'm guessing that blockfrost is using the tag name CERTIFICATE while pycardano is using CERT

Should RedeemerTag.CERT actually be RedeemerTag.CERTIFICATE or is there some compatibility code missing?

#312 It seems that reward/withdrawal tag was previously different as well.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions