jaros1 / Money-Network

Demo with complementary and alternative money. Implemented in ZeroNet and AngularJS. Focus on privacy, encryption, max data in client and min data on ZeroNet. Work in progress.
GNU General Public License v2.0
4 stars 4 forks source link

Error in MoneyNetworkAPI #232

Closed jaros1 closed 7 years ago

jaros1 commented 7 years ago

MoneyNetworkAPI.js:2119 Uncaught TypeError: Converting circular structure to JSON at JSON.stringify () at save_offline_transaction (MoneyNetworkAPI.js:2119) at Object. (MoneyNetworkAPI.js:2137) at ZeroFrame.onMessage (all.js:27016) at all.js:26982

Must be save_offline_transaction function in MoneyNetworkAPI.send_message.

jaros1 commented 7 years ago

Fixed an error in send_message.save_offline_transaction. Now an other error in MoneyNetworkAPI:

MoneyNetworkAPI.js:726 Uncaught TypeError: array.indexOf is not a function at Object. (MoneyNetworkAPI.js:726) at ZeroFrame.onMessage (all.js:27016) at all.js:26982

jaros1 commented 7 years ago

Fixed. It was an error in "is_client" function in MoneyNetworkAPI. Using global master/client setting instead of MoneyNetworkAPI instance master/client setup