Update WalletConnect strings

This commit is contained in:
Ivan Grachyov 2021-06-13 13:59:47 +03:00
parent 3bcd4c6ce1
commit f54c0855d5

View File

@ -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()