Skip to content

Commit

Permalink
Merge pull request #106 from michielmulders/basic-usage-example-fix-code
Browse files Browse the repository at this point in the history
Small code change - fix
  • Loading branch information
michielmulders committed Sep 28, 2017
2 parents e1be5ba + 366a46f commit ad89f6f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/source/usage.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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.'))
Expand Down

0 comments on commit ad89f6f

Please sign in to comment.