From 1e8f51ac7f59a8ad2f853a332ab5cafbf817391e Mon Sep 17 00:00:00 2001
From: diazjj <jjdiaz@cttc.es>
Date: Mon, 1 Jul 2024 10:05:55 +0200
Subject: [PATCH] Debugging

---
 src/dlt/gateway/dltApp/src/fabricConnect.ts | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/dlt/gateway/dltApp/src/fabricConnect.ts b/src/dlt/gateway/dltApp/src/fabricConnect.ts
index 51c8f8046..42711f5a0 100644
--- a/src/dlt/gateway/dltApp/src/fabricConnect.ts
+++ b/src/dlt/gateway/dltApp/src/fabricConnect.ts
@@ -105,6 +105,7 @@ async function newGrpcConnection(): Promise<grpc.Client> {
 
 async function newIdentity(): Promise<Identity> {
     const certPath = await getFirstDirFileName(certDirectoryPath);
+    console.log("DEBUG", certPath);
     const credentials = await fs.readFile(certPath);
     return { mspId, credentials };
 }
@@ -116,6 +117,7 @@ async function getFirstDirFileName(dirPath: string): Promise<string> {
 
 async function newSigner(): Promise<Signer> {
     const keyPath = await getFirstDirFileName(keyDirectoryPath);
+    console.log("DEBUG2", keyPath);
     const privateKeyPem = await fs.readFile(keyPath);
     const privateKey = crypto.createPrivateKey(privateKeyPem);
     return signers.newPrivateKeySigner(privateKey);
-- 
GitLab