Evgenii Lisitskii
Evgenii Lisitskii
Fixed by `add_inputs_from_and_change` function in the CSL 12.0.0, please use `add_inputs_from_and_change` instead `add_inputs_from`. Thanks @twwu123 for your implementation.
How to reference deployed scripts and datums on TransactionWitnessSet, not using TransactionBuilder?
Hi @zxpectre ! Use the DatumSource and the PlutusScriptSource types. Small example by the link https://github.com/Emurgo/cardano-serialization-lib/releases/tag/11.1.0 . But in the `PlutusScriptSource` I recommend to use the `new_ref_input_with_lang_ver`, because `new_ref_input` can...
How to reference deployed scripts and datums on TransactionWitnessSet, not using TransactionBuilder?
@zxpectre You can try to use `add_reference_input` from the `TransactionBuilder`. ref inputs is not part of witnesses set, it is part of tx body.
How to reference deployed scripts and datums on TransactionWitnessSet, not using TransactionBuilder?
@zxpectre what plutus version do you use ? What error do you get from cardano node ?
How to reference deployed scripts and datums on TransactionWitnessSet, not using TransactionBuilder?
Hi @zxpectre ! Check ogmios doc seems you have issue with script integrity hash. And also check that you use the latest ogmios version. If you add plutus witnesses by...
How to reference deployed scripts and datums on TransactionWitnessSet, not using TransactionBuilder?
Hi @zxpectre sorry for long answer. You don't need to provide referenced datums for script hash calculation. `hash_script_data()` args is not sorted by CSL , you need provide them exact...
How to reference deployed scripts and datums on TransactionWitnessSet, not using TransactionBuilder?
Seems issue is solved, if not reopen please it
Hi @bluezdot ! Unfortunately our documentation is slightly outdated, but since it’s an open source project any contribution will be welcomed. Here you can find examples of CSL usage https://github.com/Ryun1/cip95-cardano-wallet-connector
Hi @RaaCT0R! We will investigate it, but if you want to save your time I recommend to use function TransactionBuilder.add_change_if_needed(), it will help to avoid some corner cases that is...
@RaaCT0R hm it very strange, could you provide a code snippet to reproduce issue on our side ?