Open SCMusson opened 1 day ago
A corresponding function likely has to be added similar to the minting script file and withdrawal script file fields - simply because they were never used by anyone so far.
For reference I added a similar function for withdrawals a while ago here: https://github.com/Python-Cardano/pycardano/pull/308
It doesn't look like it will be too tricky, I'll scrape a pull request together
Describe the bug TransactionBuilder.build_and_sign does not seem to correctly build the witness set if the Certificates are constructed using ScriptHash rather than StakeKeyHash.
I am attempting to recreate the plutus pioneer program week 8 task in opshin/pycardano. If I'm not mistaken this task requires the stake registration and stake delegation certificates to be created with a ScriptHash. I can't seem to find any methods to add certificates other than to set TransactionBuilder.certificates directly.
I'm currently working like so:
The equivalent cardano-cli commands are:
particularly I can't seem to find any methods or arguments equivalent to the
--certificate-script-file
option. My understanding is that a script witness needs to be created for the plutus script but I can't seem to find a clean way of adding the script or adding it to the witness set.Environment and software version (please complete the following information):