diff --git a/Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift b/Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift index 464500fd3..ad2c52b20 100644 --- a/Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift +++ b/Sources/WalletConnectSign/Engine/Common/ApproveEngine.swift @@ -159,7 +159,19 @@ final class ApproveEngine { do { let session: WCSession = try await settleRequestTask + eventsClient.saveTraceEvent(SessionApproveExecutionTraceEvents.sessionSettleSuccess) + logger.debug("Session settle request has been successfully processed") + + do { + _ = try await proposeResponseTask + eventsClient.saveTraceEvent(SessionApproveExecutionTraceEvents.responseApproveSent) + } catch { + eventsClient.saveTraceEvent(ApproveSessionTraceErrorEvents.sessionSettleFailure) + throw error + } + sessionStore.setSession(session) + Task { removePairing(pairingTopic: pairingTopic) }