From f54c0855d5c87be3d12cabba42ace605b9cd7487 Mon Sep 17 00:00:00 2001 From: Ivan Grachyov Date: Sun, 13 Jun 2021 13:59:47 +0300 Subject: [PATCH] Update WalletConnect strings --- Encrypted Ink/WalletConnect.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Encrypted Ink/WalletConnect.swift b/Encrypted Ink/WalletConnect.swift index adfe74f6..e5e0b406 100644 --- a/Encrypted Ink/WalletConnect.swift +++ b/Encrypted Ink/WalletConnect.swift @@ -58,7 +58,7 @@ class WalletConnect { private func approveTransaction(id: Int64, wct: WCEthereumTransaction, address: String, interactor: WCInteractor?) { let value = Double(UInt64(wct.value?.dropFirst(2) ?? "0", radix: 16) ?? 0) / 1e18 - Agent.shared.showApprove(title: "Send Transaction", meta: "value: \(value) ETH\ndata: \(wct.data)") { [weak self] approved in + Agent.shared.showApprove(title: "Send Transaction", meta: "value: \(value) ETH\n\ndata: \(wct.data)") { [weak self] approved in if approved { self?.sendTransaction(id: id, wct: wct, address: address, interactor: interactor) } else { @@ -111,7 +111,7 @@ class WalletConnect { weiAmount: wct.value ?? "", contractCall: wct.data) guard let hash = try? Ethereum.send(transaction: transaction, account: account) else { - rejectRequest(id: id, interactor: interactor, message: "Failed for some reason") + rejectRequest(id: id, interactor: interactor, message: "Failed to send") return } interactor?.approveRequest(id: id, result: hash).cauterize()