Skip to content

Commit

Permalink
80chars rule
Browse files Browse the repository at this point in the history
  • Loading branch information
manolodewiner committed Dec 20, 2017
1 parent 879ae68 commit b05dc84
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions docs/source/readme.rst
Original file line number Diff line number Diff line change
Expand Up @@ -51,10 +51,12 @@ For versions below 3.2, a transfer transaction looked like:
0
)
const signedTransfer = BigchainDB.Transaction.signTransaction(createTranfer, keypair.privateKey)
const signedTransfer = BigchainDB.Transaction.signTransaction(createTranfer,
keypair.privateKey)
In order to upgrade and do it compatible with the new driver version, this transaction should be now:
In order to upgrade and do it compatible with the new driver version, this
transaction should be now:

.. code-block:: js
Expand All @@ -64,19 +66,23 @@ In order to upgrade and do it compatible with the new driver version, this trans
metaData
)
const signedTransfer = BigchainDB.Transaction.signTransaction(createTranfer, keypair.privateKey)
const signedTransfer = BigchainDB.Transaction.signTransaction(createTranfer,
keypair.privateKey)
The upgrade allows to create transfer transaction spending outputs that belong to different transactions.
So for instance is now possible to create a transfer transaction spending two outputs from two different create transactions:
The upgrade allows to create transfer transaction spending outputs that belong
to different transactions. So for instance is now possible to create a transfer
transaction spending two outputs from two different create transactions:


.. code-block:: js
const createTranfer = BigchainDB.Transaction.makeTransferTransaction(
[{ tx: txCreated1, output_index: 0 }, { tx: txCreated2, output_index: 0 }],
[{ tx: txCreated1, output_index: 0 },
M{ tx: txCreated2, output_index: 0}],
[aliceOutput],
metaData
)
const signedTransfer = BigchainDB.Transaction.signTransaction(createTranfer, keypair.privateKey)
const signedTransfer = BigchainDB.Transaction.signTransaction(createTranfer,
keypair.privateKey)

0 comments on commit b05dc84

Please sign in to comment.