mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-06-23 17:56:41 +02:00
Fixed typos
This commit is contained in:
parent
ce414e46f3
commit
cda8259e57
|
@ -229,7 +229,7 @@ def get_assets(connection, asset_ids):
|
|||
"""Get a list of assets from the assets table.
|
||||
|
||||
Args:
|
||||
asset_ids (list): a of list of ids for the assets to be retrieved from
|
||||
asset_ids (list): a list of ids for the assets to be retrieved from
|
||||
the database.
|
||||
|
||||
Returns:
|
||||
|
@ -293,7 +293,7 @@ def get_last_voted_block_id(connection, node_pubkey):
|
|||
node_pubkey (str): base58 encoded public key.
|
||||
|
||||
Returns:
|
||||
The last block id the node has voted on. If the node didn't cast
|
||||
The id of the last block the node has voted on. If the node didn't cast
|
||||
any vote then the genesis block id is returned.
|
||||
"""
|
||||
|
||||
|
|
|
@ -648,7 +648,7 @@ class Bigchain(object):
|
|||
asset_ids (:obj:`list` of :obj:`str`): A list of asset_ids to
|
||||
retrieve from the database.
|
||||
|
||||
Returs:
|
||||
Returns:
|
||||
list: The list of assets returned from the database.
|
||||
"""
|
||||
return backend.query.get_assets(self.connection, asset_ids)
|
||||
|
|
|
@ -106,7 +106,7 @@ class Transaction(Transaction):
|
|||
if tx_dict['operation'] in [Transaction.CREATE, Transaction.GENESIS]:
|
||||
# TODO: Maybe replace this call to a call to get_asset_by_id
|
||||
asset = list(bigchain.get_assets([tx_dict['id']]))[0]
|
||||
asset.pop('id')
|
||||
del asset['id']
|
||||
tx_dict.update({'asset': asset})
|
||||
|
||||
return cls.from_dict(tx_dict)
|
||||
|
|
Loading…
Reference in New Issue
Block a user