hyperledger-labs / convector

Smart Contract Systems the easy way. Open source development framework.
Other
146 stars 45 forks source link

Empty object should be handled before passing to JSON.parse #81

Open Vishwas1 opened 5 years ago

Vishwas1 commented 5 years ago

The problem

in this line empty object should be handled before passing to JSON.parse... check it out const result = JSON.parse(txResult.result.response.payload.toString('utf8'));

https://github.com/hyperledger-labs/convector/blob/develop/%40worldsibu/convector-common-fabric-helper/src/client.helper.ts#L198

Environment

Details

Current Behavior

Explain what the current behavior is

Expected Behavior

Explain what you were expecting to happend instead

Code To Reproduce Issue [ Good To Have ]

Please remember that with sample code it's easier to reproduce the bug and it's much faster to fix it.

Use convector-cli if possible as the base to reproduce the issue

diestrin commented 5 years ago

Hey @Vishwas1, thanks for the issue. Can you please provide an example of how to reproduce your issue? Or explain a little bit more in detail what the problem is? Thanks