mirror of
https://github.com/lil-org/wallet.git
synced 2025-01-06 04:13:11 +03:00
Update WalletConnect strings
This commit is contained in:
parent
3bcd4c6ce1
commit
f54c0855d5
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user