mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
code cleanup
This commit is contained in:
parent
51addb9cc9
commit
9702190516
@ -202,10 +202,6 @@ def create_tx(current_owners, new_owners, inputs, operation, payload=None):
|
|||||||
},
|
},
|
||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
current_owners = current_owners if isinstance(current_owners, list) else [current_owners]
|
|
||||||
new_owners = new_owners if isinstance(new_owners, list) else [new_owners]
|
|
||||||
inputs = inputs if isinstance(inputs, list) else [inputs]
|
|
||||||
|
|
||||||
# validate arguments (owners and inputs should be lists)
|
# validate arguments (owners and inputs should be lists)
|
||||||
if not isinstance(current_owners, list):
|
if not isinstance(current_owners, list):
|
||||||
current_owners = [current_owners]
|
current_owners = [current_owners]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user