QuantumMechanics / NEM-sdk

NEM Developer Kit for Node.js and the browser
MIT License
137 stars 82 forks source link

fixed error in nodejs mosaicTransfer.js example #31

Closed himanshudabas closed 6 years ago

himanshudabas commented 6 years ago

searchMosaicDefinitionArray requires it's first parameter to be an array of all the mosaics present under a namespace while searchMosaicDefinitionArray(res, ["eur"]) was sending the JSON data as a parameter which is incompatible with the helper function. Thus, I changed searchMosaicDefinitionArray(res, ["eur"]) to searchMosaicDefinitionArray(res.data, ["eur"]).