hyperledger-archives / education

Hyperledger training material
https://wiki.hyperledger.org/display/LMDWG
Apache License 2.0
372 stars 360 forks source link

Sawtooth-tuna - Transfer bug? #11

Open owenrh opened 6 years ago

owenrh commented 6 years ago

Hi,

I'm just running through the edX Blockchain for Business - An Introduction to Hyperledger Technologies course. I'm hitting what appears to be a bug when attempting to perform a transfer an asset.

When I perform the transfer, the transfer fields reset but nothing appears in the Accept Tuna section. If I refresh the browser I get the following error in the console.

bundle.js:30428 Uncaught TypeError: Cannot read property 'public' of null at transfers.filter.transfer (bundle.js:30428) at Array.filter (<anonymous>) at getState (bundle.js:30428) at Object.$.get [as success] (bundle.js:30556) at fire (bundle.js:13363) at Object.fireWith [as resolveWith] (bundle.js:13493) at done (bundle.js:19318) at XMLHttpRequest.<anonymous> (bundle.js:19560)

this is the code in question

// Populate transfer list for selected user transfers.filter(transfer => transfer.owner === this.user.public) .forEach(transfer => addAction('#transferList', transfer.asset, 'Accept'))

This is in Chrome. Using the latest repo code. Thanks.