mirror of
https://github.com/hyperledger/fabric-samples.git
synced 2026-06-22 09:35:10 +00:00
Disconnected from the gateway in fabcar query.js (#190)
Signed-off-by: pratikpatil024 <pratikspatil024@gmail.com>
This commit is contained in:
parent
61107dbf84
commit
2759db2847
1 changed files with 3 additions and 0 deletions
|
|
@ -46,6 +46,9 @@ async function main() {
|
||||||
const result = await contract.evaluateTransaction('queryAllCars');
|
const result = await contract.evaluateTransaction('queryAllCars');
|
||||||
console.log(`Transaction has been evaluated, result is: ${result.toString()}`);
|
console.log(`Transaction has been evaluated, result is: ${result.toString()}`);
|
||||||
|
|
||||||
|
// Disconnect from the gateway.
|
||||||
|
await gateway.disconnect();
|
||||||
|
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`Failed to evaluate transaction: ${error}`);
|
console.error(`Failed to evaluate transaction: ${error}`);
|
||||||
process.exit(1);
|
process.exit(1);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue