Update web3-provider packages and swiftlint

This commit is contained in:
Ivan Grachev 2021-12-18 21:46:43 +03:00
parent 387fdf8f6d
commit 21ea8baa35
3 changed files with 11659 additions and 22 deletions

View File

@ -29,5 +29,4 @@ excluded:
- Pods
shorthand_operator: warning
empty_count: warning
dynamic_inline: warning

File diff suppressed because it is too large Load Diff

View File

@ -90,7 +90,7 @@ class WalletConnect {
interactor.onError = { _ in }
interactor.onSessionRequest = { [weak self, weak interactor] (id, peerParam) in
interactor.onSessionRequest = { [weak self, weak interactor] (_, peerParam) in
guard let interactor = interactor else { return }
self?.peers[interactor.clientId] = peerParam.peerMeta
self?.sessionStorage.add(interactor: interactor, chainId: chainId, walletId: walletId, sessionDetails: peerParam)
@ -108,7 +108,7 @@ class WalletConnect {
self?.sessionStorage.didInteractWith(clientId: interactor?.clientId)
}
interactor.eth.onTransaction = { [weak self, weak interactor] (id, event, transaction) in
interactor.eth.onTransaction = { [weak self, weak interactor] (id, _, transaction) in
self?.approveTransaction(id: id, wct: transaction, walletId: walletId, chainId: chainId, interactor: interactor)
self?.sessionStorage.didInteractWith(clientId: interactor?.clientId)
}