mirror of
https://github.com/planetmint/planetmint.git
synced 2025-11-25 15:05:49 +00:00
Added checking for fulfills, if there is no fulfills then add None (for returning objects)
This commit is contained in:
parent
3bba5d4d60
commit
bcdff80c38
@ -40,7 +40,7 @@ def _group_transaction_by_ids(txids: list, connection):
|
|||||||
"inputs": [
|
"inputs": [
|
||||||
{
|
{
|
||||||
"owners_before": _in[2],
|
"owners_before": _in[2],
|
||||||
"fulfills": {"transaction_id": _in[3], "output_index": _in[4]},
|
"fulfills": {"transaction_id": _in[3], "output_index": _in[4]} if len(_in[3]) > 0 and len(_int[4]) > 0 else None,
|
||||||
"fulfillment": _in[1]
|
"fulfillment": _in[1]
|
||||||
} for _in in _txinputs
|
} for _in in _txinputs
|
||||||
],
|
],
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user