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

PyCardano creates invalid transaction for Chang networks #369

Open
nielstron opened this issue Aug 29, 2024 · 5 comments
Open

PyCardano creates invalid transaction for Chang networks #369

nielstron opened this issue Aug 29, 2024 · 5 comments
Labels
bug Something isn't working

Comments

@nielstron
Copy link
Contributor

Describe the bug

pycardano.exception.TransactionFailedException: Failed to submit transaction. Error code: 400. Error message: {"contents":{"contents":{"contents":"EraMismatch {ledgerEraName = \"Conway\", otherEraName = \"Babbage\"}","tag":"TxValidationEraMismatch"},"tag":"TxCmdTxSubmitValidationError"},"tag":"TxSubmitFail"}

To Reproduce
Build and submit tx using Ogmios V6 and i.e. collect_gift.py from OpShin pioneer program on preprod

Expected behavior
Should submit correctly

Additional context
Copied from discord: https://discord.com/channels/1077870759667580929/1276796332178276377

Also apparently the old tx format is incompatible to new hardfork Chang era: https://x.com/_KtorZ_/status/1829102452630491140

TODO: find some documentation of what exactly breaks in Chang

@nielstron nielstron added the bug Something isn't working label Aug 29, 2024
@nielstron
Copy link
Contributor Author

It seems like @cffls already started building a branch for Chang here: https://github.com/Python-Cardano/pycardano/commits/chang/

Since the only reason that Chang is not mainnet yet was some delay it would be good if this progresses soon 😅 Trying to consolidate progress in this issue

@cffls
Copy link
Collaborator

cffls commented Aug 29, 2024

Merged your branch feat/add_v6_backend into chang, but there seems to be some issue in python ogmios.

@cffls
Copy link
Collaborator

cffls commented Aug 29, 2024

I suspect the problem you observed above was caused by the enforcement of non-empty set/list in the second era of Chang HF: https://github.com/IntersectMBO/cardano-ledger/blob/master/eras/conway/impl/cddl-files/extra.cddl#L1-L3

@larestrepo
Copy link

Hi, wanted to know if this issue is already fixed. I am having the same error right now. My app is stuck and cannot submit transactions.

@nielstron
Copy link
Contributor Author

nielstron commented Sep 3, 2024

Hey @larestrepo
please try using the chang branch of PyCardano and report issues in #371, that would be extremely helpful!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants