Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RedeemerTag for certificates is CERT rather than CERTIFICATE #387

Open
SCMusson opened this issue Oct 14, 2024 · 2 comments
Open

RedeemerTag for certificates is CERT rather than CERTIFICATE #387

SCMusson opened this issue Oct 14, 2024 · 2 comments

Comments

@SCMusson
Copy link
Contributor

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.

@nielstron
Copy link
Contributor

nielstron commented Oct 14, 2024

Reward/Withdrawal was previously different because the tags changed between OgmiosV5 and V6. Either changing the name of the Tag (which is automatically the tag name used for the JSON serialization) or adding compatibility code to OgmiosV6/Blockfrost backend akin to #312 should do the trick.

@nielstron
Copy link
Contributor

BTW Blockfrost is internally using Ogmios as well, that's why my reasoning is mainly about Ogmios and not Blockfrost.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants