-
Notifications
You must be signed in to change notification settings - Fork 24
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
Invalid request: specified both 'datumHash' & 'datum' #454
Comments
The error itself is coming from Ogmios. It seems fine to have an undefined datum with a populated Looking at the source code for lucid-evolution/packages/lucid/src/tx-builder/internal/Read.ts Lines 19 to 26 in 76cdb3f
@bmoore117 would it possible for you to observe the packet LE is sending to Kupmios (network tab in browser, |
I assume ultimately you're looking for the transaction CBOR, at least that's what I've got. It's More legibly, it's
I don't pretend to be able to read any of this stuff, but if it helps, this is what LE is sending to Kupmios for evaluation |
The packet itself should be a JSON that contains a list of UTxO pairs (in addition to the CBOR) which my guess is where the problem is coming from. So if you could also observe that JSON object, that'd be very helpful. However, since this is happening at the evaluation phase, you should be able to avoid this altogether by updating LE, and removing the object you're passing to the Also by referring to the era's CDDL file, you can get a better read on its contents 🙂 |
When using the Kupmios provider for lucid-evo, the following code, which is meant to read from a reference input, mint a token with an inline datum, and pay it out to a given address fails with the titular error.
where
datum
is defined asand in practice for me evaluates to
d8799f1b00000193c261a8e4191388581cbf67d1fb1b895288bfa25aa949aa56f20fc38915ae2db199990881f6ff
which is a valid value you can paste into any CBOR decoder. For reference,
deployedContract
evaluates to:There seems to be a bug in the implementation somewhere here: I should be able to specify a reference input, whose datum types or lack thereof should have nothing to do with any datum types present in what I mint and output. I can do this transaction using the cardano-cli, no issue, and can supply example code if needed. Can someone investigate?
The text was updated successfully, but these errors were encountered: