adjusted doc strings

Signed-off-by: Lorenz Herzberger <lorenzherzberger@gmail.com>
This commit is contained in:
Lorenz Herzberger 2022-05-10 14:31:09 +02:00
parent 313dc9d8c1
commit b842ea78c4
No known key found for this signature in database
GPG Key ID: FA5EE906EB55316A
2 changed files with 5 additions and 5 deletions

View File

@ -61,9 +61,9 @@ class Transaction(object):
spend.
outputs (:obj:`list` of :class:`~planetmint.transactions.common.
transaction.Output`, optional): Define the assets to lock.
asset (dict): Asset payload for this Transaction. ``CREATE``
Transactions require a dict with a ``data``
property while ``TRANSFER`` Transactions require a dict with a
assets (:obj:`list` of :obj:`dict`): Asset payload for this Transaction. ``CREATE``
Transactions require a list containing exactly one dict with a ``data``
property while ``TRANSFER`` Transactions require a list containing a dict with a
``id`` property.
metadata (dict):
Metadata to be stored along with the Transaction.
@ -85,7 +85,7 @@ class Transaction(object):
Args:
operation (str): Defines the operation of the Transaction.
asset (dict): Asset payload for this Transaction.
assets (:obj:`list` of :obj:`dict`): Asset payload for this Transaction.
inputs (:obj:`list` of :class:`~planetmint.transactions.common.
transaction.Input`, optional): Define the assets to
outputs (:obj:`list` of :class:`~planetmint.transactions.common.

View File

@ -69,7 +69,7 @@ class Create(Transaction):
Transaction.
metadata (dict): The metadata to be stored along with the
Transaction.
asset (dict): The metadata associated with the asset that will
assets (:obj:`list` of :obj:`dict`): The metadata associated with the asset that will
be created in this Transaction.
Returns: