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 can add another TransactionBuilder property like ttl as part of the object instantiation, e.g. builder = TransactionBuilder(context=context, ttl=2024)
But trying to do the same for the reference_inputs property results in:
Trying to add it to the object after it's instantiated also fails to build a proper transaction:
builder = TransactionBuilder(context)`
builder.__set__(self, reference_inputs, {"test1", "test2"})
>>>AttributeError: 'TransactionBuilder' object has no attribute '__set__'. Did you mean: '__eq__'?
This code here appears to be adding reference_inputs to the utxo.output.script but, again, not sure where to initially set that reference input value.
Thanks very much @cffls I can confirm this works. Just one correction, the property name should be plural e.g. builder.reference_inputs not builder.reference_input
Will return favour with a documentation PR that you may or may not want to add.
It's not obvious how to set values for the reference_inputs property and add it to a TransactionBody, as per the API here:
https://pycardano.readthedocs.io/en/latest/api/pycardano.transaction.html#pycardano.transaction.TransactionBody
I can add another TransactionBuilder property like
ttl
as part of the object instantiation, e.g.builder = TransactionBuilder(context=context, ttl=2024)
But trying to do the same for the
reference_inputs
property results in:Trying to add it to the object after it's instantiated also fails to build a proper transaction:
This code here appears to be adding reference_inputs to the utxo.output.script but, again, not sure where to initially set that reference input value.
pycardano/pycardano/txbuilder.py
Lines 224 to 227 in c5430c0
The text was updated successfully, but these errors were encountered: