From dcf97d5a7dbdd906ad14fe00b8b32aae195953b5 Mon Sep 17 00:00:00 2001 From: Phil Date: Wed, 1 Nov 2023 12:53:57 -0600 Subject: [PATCH] Clean up comments --- src/chains/penumbra/penumbra.controller.ts | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/src/chains/penumbra/penumbra.controller.ts b/src/chains/penumbra/penumbra.controller.ts index 81964f5521..246f908e11 100644 --- a/src/chains/penumbra/penumbra.controller.ts +++ b/src/chains/penumbra/penumbra.controller.ts @@ -7,16 +7,12 @@ const grpc = require('@grpc/grpc-js'); export class PenumbraController { static balances(req: BalancesRequest): Promise { - // TODO: Validate request - console.log("Start..") - return new Promise((resolve, reject) => { // Make connection const client = new ViewProtocolServiceClient( PenumbraConfig.config.network.rpcURL, grpc.credentials.createInsecure() ); - console.log('Making request...'); // Get balances const call = client.balances(req); @@ -24,12 +20,11 @@ export class PenumbraController { call.on('data', (response: any) => { const balanceObject = BalancesResponse.toObject(false, response); - console.log(balanceObject); + //console.log(balanceObject); responses.push(balanceObject); }); call.on('end', () => { - console.log('Streaming ended.'); resolve(responses); }); @@ -50,6 +45,6 @@ async function getBalances() { getBalances(); -// Run this file locally +// To run this file locally // npm install -g ts-node typescript '@types/node' // ts-node src/chains/penumbra/penumbra.controller.ts