1
0
mirror of https://github.com/bigchaindb/js-bigchaindb-driver.git synced 2024-12-28 15:47:50 +01:00

Merge pull request #1 from bigchaindb/master

Update master to new version
This commit is contained in:
michielmulders 2017-09-28 11:24:25 +02:00 committed by GitHub
commit 22bebc7e2f
2 changed files with 4 additions and 4 deletions

View File

@ -15,7 +15,7 @@
| BigchainDB Server | BigchainDB JavaScript Driver |
| ----------------- |------------------------------|
| `0.10` | `0.1.x` |
| `1.0` | `0.3.x` |
| `>= 1.0.0` | `0.3.x` |
## Contents

View File

@ -212,7 +212,7 @@ Bob is the new owner:
.. code-block:: js
console.log('Is Bob the owner?', tx['outputs'][0]['public_keys'][0] == bob.publicKey)
console.log('Is Bob the owner?', txTransferBobSigned['outputs'][0]['public_keys'][0] == bob.publicKey)
// Output: true
Alice is the former owner:
@ -347,11 +347,11 @@ Recap: Asset Creation & Transfer
})
.then(res => {
console.log('Response from BDB server:', res)
return conn.pollStatusAndFetchTransaction(txTransferBobSigned.id)
return conn.pollStatusAndFetchTransaction(res.id)
})
.then(tx => {
console.log('Is Bob the owner?', tx['outputs'][0]['public_keys'][0] == bob.publicKey)
console.log('Was Alice the previous owner?', txTransferBobSigned['inputs'][0]['owners_before'][0] == alice.publicKey )
console.log('Was Alice the previous owner?', tx['inputs'][0]['owners_before'][0] == alice.publicKey )
})
// Search for asset based on the serial number of the bicycle
.then(() => conn.searchAssets('Bicycle Inc.'))