From e86e1d9eb9405047dc14b4d664a2c72a2b328e92 Mon Sep 17 00:00:00 2001 From: IshaVenikar Date: Mon, 28 Oct 2024 11:37:09 +0530 Subject: [PATCH] Update build logs UI --- packages/backend/src/registry.ts | 2 +- .../projects/project/deployments/DeploymentDetailsCard.tsx | 4 ++-- packages/gql-client/src/client.ts | 5 ----- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/backend/src/registry.ts b/packages/backend/src/registry.ts index b962a653..a7f5441f 100644 --- a/packages/backend/src/registry.ts +++ b/packages/backend/src/registry.ts @@ -490,7 +490,7 @@ export class Registry { this.registry.sendCoins( { amount, - denom: 'tlnt', + denom: 'alnt', destinationAddress: receiverAddress }, this.registryConfig.privateKey, diff --git a/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx b/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx index 5dbabfee..bbf31076 100644 --- a/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx +++ b/packages/frontend/src/components/projects/project/deployments/DeploymentDetailsCard.tsx @@ -93,20 +93,20 @@ const DeploymentDetailsCard = ({ }; const fetchDeploymentLogs = async () => { + setDeploymentLogs('Loading logs...'); + handleOpenDialog(); const statusUrl = `${deployment.deployer.deployerApiUrl}/${deployment.applicationDeploymentRequestId}`; const statusRes = await fetch(statusUrl, { cache: 'no-store' }).then( (res) => res.json(), ); if (!statusRes.logAvailable) { setDeploymentLogs(statusRes.lastState); - handleOpenDialog(); } else { const logsUrl = `${deployment.deployer.deployerApiUrl}/log/${deployment.applicationDeploymentRequestId}`; const logsRes = await fetch(logsUrl, { cache: 'no-store' }).then((res) => res.text(), ); setDeploymentLogs(logsRes); - handleOpenDialog(); } }; diff --git a/packages/gql-client/src/client.ts b/packages/gql-client/src/client.ts index adfa6ada..201f9fcb 100644 --- a/packages/gql-client/src/client.ts +++ b/packages/gql-client/src/client.ts @@ -442,11 +442,6 @@ export class GQLClient { } async verifyTx(txHash: string, amount: string, senderAddress: string): Promise { - console.log('Verifying Transaction with parameters:', { - txHash, - amount, - senderAddress - }); const { data: verifyTx } = await this.client.query({ query: queries.verifyTx, variables: {