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

Transaction submit error caused by filled datum and datumHash field #249

Open
miksax opened this issue May 20, 2024 · 0 comments
Open

Transaction submit error caused by filled datum and datumHash field #249

miksax opened this issue May 20, 2024 · 0 comments

Comments

@miksax
Copy link

miksax commented May 20, 2024

When you fill UTxO with both datum and datumHash field and datum is inline, the transaction will fail (Blockfrost error attached).
There is no problem validating it inside lucid, but the final transaction expects a supplemental datum.
If you remove the datum filed from UTxO, everything works as expected.

What about expanding the UTxO type with information about DatumType to fulfill valid transactions?

{
 "error":"Bad Request","message":"{\"contents\":{\"contents\":{\"contents\":{\"era\":\"ShelleyBasedEraBabbage\",\"error\":[{\"contents\":{\"contents\":{\"contents\":[[\"6820e9815d81b1ff6b87ff119841d13e753aadb52ccab189a55aa70c0f2446e0\",\"923918e403bf43c34b4ef6b48eb2ee04babed17320d8d1b9ff9ad086e86f44ec\"],[]],\"tag\":\"NotAllowedSupplementalDatums\"},\"tag\":\"AlonzoInBabbageUtxowPredFailure\"},\"tag\":\"UtxowFailure\"}],\"kind\":\"ShelleyTxValidationError\"},\"tag\":\"TxValidationErrorInCardanoMode\"},\"tag\":\"TxCmdTxSubmitValidationError\"},\"tag\":\"TxSubmitFail\"}","status_code":400}
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

1 participant