mirror of
https://github.com/bigchaindb/bigchaindb.git
synced 2024-10-13 13:34:05 +00:00
Small adjustments to transfer-tx interface
This commit is contained in:
parent
d4864f89ad
commit
706c8923c8
@ -669,7 +669,7 @@ def test_validate_hashlock_create_transaction(user_pub, user_priv):
|
|||||||
|
|
||||||
|
|
||||||
def test_conditions_to_inputs(tx):
|
def test_conditions_to_inputs(tx):
|
||||||
ffills = tx.to_spendable_fulfillments([0])
|
ffills = tx.to_inputs([0])
|
||||||
assert len(ffills) == 1
|
assert len(ffills) == 1
|
||||||
ffill= ffills.pop()
|
ffill= ffills.pop()
|
||||||
assert ffill.fulfillment == tx.conditions[0].fulfillment
|
assert ffill.fulfillment == tx.conditions[0].fulfillment
|
||||||
@ -706,8 +706,8 @@ def test_create_transfer_transaction_single_io(tx, user_pub, user2_pub,
|
|||||||
},
|
},
|
||||||
'version': 1
|
'version': 1
|
||||||
}
|
}
|
||||||
inputs = tx.to_spendable_fulfillments([0])
|
inputs = tx.to_inputs([0])
|
||||||
transfer_tx = Transaction.transfer(inputs, [user2_pub], None)
|
transfer_tx = Transaction.transfer(inputs, [user2_pub])
|
||||||
transfer_tx = transfer_tx.sign([user_priv])
|
transfer_tx = transfer_tx.sign([user_priv])
|
||||||
transfer_tx = transfer_tx.to_dict()
|
transfer_tx = transfer_tx.to_dict()
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user