From cae8337f93b951cf9308efa5cf05663e9e9c5838 Mon Sep 17 00:00:00 2001 From: Alex Jbanca Date: Tue, 19 Nov 2024 09:42:55 +0200 Subject: [PATCH] fix(BC): Fixing the send transaction The send transaction was successful, but the transaction hash is not recognized by the dApp because it was being hashed again. --- src/app/modules/shared_modules/connector/controller.nim | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/src/app/modules/shared_modules/connector/controller.nim b/src/app/modules/shared_modules/connector/controller.nim index 8dd685e0c9..30d7ca0173 100644 --- a/src/app/modules/shared_modules/connector/controller.nim +++ b/src/app/modules/shared_modules/connector/controller.nim @@ -7,8 +7,6 @@ import app/core/signals/types import app_service/service/connector/service as connector_service -import app_service/common/utils - const SIGNAL_CONNECTOR_SEND_REQUEST_ACCOUNTS* = "ConnectorSendRequestAccounts" const SIGNAL_CONNECTOR_EVENT_CONNECTOR_SEND_TRANSACTION* = "ConnectorSendTransaction" const SIGNAL_CONNECTOR_GRANT_DAPP_PERMISSION* = "ConnectorGrantDAppPermission" @@ -115,9 +113,7 @@ QtObject: self.rejectConnectResponse(requestId, not result) proc approveTransaction*(self: Controller, sessionTopic: string, requestId: string, signature: string): bool {.slot.} = - let hash = utils.createHash(signature) - - result = self.service.approveTransactionRequest(requestId, hash) + result = self.service.approveTransactionRequest(requestId, signature) self.approveTransactionResponse(sessionTopic, requestId, not result) proc rejectTransaction*(self: Controller, sessionTopic: string, requestId: string): bool {.slot.} =