You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm facing some troubles when I'm trying to build a transaction. The script UTxO has an inline datum and I'm using txInputsBuilder.add_plutus_script_input. The datum is created as DatumSource::RefInput(input). Maybe I'm wrong, but I understand that when I create a datum as ref, I'm really indicating an inline datum not a reference input.
This DatumSourceis pattern matched in the get_ref_inputs:
This is causing that my redeemer is adding for each inline datum a refence input. That makes fail my validator. Am I correctly understanding this DatumSource struct? How should I add Plutus Witnesses with inline datum?
By the way, there is a typo in the word witness in the rust script. It's typed as wintess.
The text was updated successfully, but these errors were encountered:
Hello
I'm facing some troubles when I'm trying to build a transaction. The script UTxO has an inline datum and I'm using
txInputsBuilder.add_plutus_script_input
. The datum is created asDatumSource::RefInput(input)
. Maybe I'm wrong, but I understand that when I create a datum as ref, I'm really indicating an inline datum not a reference input.This
DatumSource
is pattern matched in theget_ref_inputs
:This is causing that my redeemer is adding for each inline datum a refence input. That makes fail my validator. Am I correctly understanding this DatumSource struct? How should I add Plutus Witnesses with inline datum?
By the way, there is a typo in the word witness in the rust script. It's typed as wintess.
The text was updated successfully, but these errors were encountered: