From c939977c906d38348d72992190f222a61b4ab920 Mon Sep 17 00:00:00 2001 From: michielmulders Date: Wed, 27 Sep 2017 14:21:09 +0200 Subject: [PATCH] Small code change - fix --- docs/source/usage.rst | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/source/usage.rst b/docs/source/usage.rst index 13eb526..ff4f47a 100644 --- a/docs/source/usage.rst +++ b/docs/source/usage.rst @@ -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.'))