Disconnected from the gateway in fabcar query.js (#190)

Signed-off-by: pratikpatil024 <pratikspatil024@gmail.com>
This commit is contained in:
Pratik Patil 2020-05-27 14:52:01 +05:30 committed by GitHub
parent 61107dbf84
commit 2759db2847
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,6 +46,9 @@ async function main() {
const result = await contract.evaluateTransaction('queryAllCars');
console.log(`Transaction has been evaluated, result is: ${result.toString()}`);
// Disconnect from the gateway.
await gateway.disconnect();
} catch (error) {
console.error(`Failed to evaluate transaction: ${error}`);
process.exit(1);