mirror of
https://github.com/lil-org/tokenary.git
synced 2024-12-12 12:33:42 +03:00
Don't remove interactor on disconnect
This commit is contained in:
parent
04f2e540a1
commit
63c3f1583c
@ -49,7 +49,6 @@ class WalletConnect {
|
||||
private func configure(interactor: WCInteractor, address: String) {
|
||||
let accounts = [address]
|
||||
let chainId = 1
|
||||
let id = interactor.clientId
|
||||
|
||||
interactor.onError = { _ in }
|
||||
|
||||
@ -61,8 +60,8 @@ class WalletConnect {
|
||||
interactor?.approveSession(accounts: accounts, chainId: chainId).cauterize()
|
||||
}
|
||||
|
||||
interactor.onDisconnect = { [weak self] _ in
|
||||
self?.removeInteractor(id: id)
|
||||
interactor.onDisconnect = { _ in
|
||||
// TODO: reconnect when appropriate. should not reconnect when session is killed.
|
||||
}
|
||||
|
||||
interactor.eth.onSign = { [weak self, weak interactor] (id, payload) in
|
||||
|
Loading…
Reference in New Issue
Block a user