From e4c9c4d62cf567752c9321a6703ddeacb3aa04c0 Mon Sep 17 00:00:00 2001 From: Eric Badiere Date: Fri, 28 Jun 2024 17:13:57 -0600 Subject: [PATCH 1/2] Update packages/relay/src/lib/clients/sdkClient.ts Co-authored-by: Nana Essilfie-Conduah <56320167+Nana-EC@users.noreply.github.com> Signed-off-by: Eric Badiere --- packages/relay/src/lib/clients/sdkClient.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/relay/src/lib/clients/sdkClient.ts b/packages/relay/src/lib/clients/sdkClient.ts index fb0dd336ce..5f415006cf 100644 --- a/packages/relay/src/lib/clients/sdkClient.ts +++ b/packages/relay/src/lib/clients/sdkClient.ts @@ -765,7 +765,7 @@ export class SDKClient { ); this.logger.info( - `${requestIdPrefix} ${fileCreateTx.transactionId} ${callerName} ${fileCreateTx.constructor.name} status: ${sdkClientError.status} (${sdkClientError.status._code}), cost: ${transactionFee}`, + `${requestIdPrefix} ${fileAppendTx.transactionId} ${callerName} ${fileCreateTx.constructor.name} status: ${sdkClientError.status} (${sdkClientError.status._code}), cost: ${transactionFee}`, ); } } catch (err: any) { From 027fa5b331a48b242a3e26ab1361954d4620fb62 Mon Sep 17 00:00:00 2001 From: Logan Nguyen Date: Fri, 28 Jun 2024 19:15:26 -0400 Subject: [PATCH 2/2] fix: removed unused variable Signed-off-by: Logan Nguyen --- packages/relay/src/lib/clients/sdkClient.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/relay/src/lib/clients/sdkClient.ts b/packages/relay/src/lib/clients/sdkClient.ts index 5f415006cf..3b4286a464 100644 --- a/packages/relay/src/lib/clients/sdkClient.ts +++ b/packages/relay/src/lib/clients/sdkClient.ts @@ -651,7 +651,7 @@ export class SDKClient { const requestIdPrefix = formatRequestIdMessage(requestId); const hexedCallData = Buffer.from(callData).toString('hex'); const currentDateNow = Date.now(); - let createFileId, fileCreateTx, fileAppendTx; + let fileCreateTx, fileAppendTx; try { const shouldLimit = this.hbarLimiter.shouldLimit(currentDateNow, SDKClient.transactionMode, callerName); @@ -784,8 +784,6 @@ export class SDKClient { } throw sdkClientError; } - - return createFileId; }; /**