Also pass AnalyticsCoordinator to `EtherKeystore` when creating in `TokenInstanceWebView`

pull/2645/head
Hwee-Boon Yar 4 years ago
parent 3bc045999e
commit e3995c7493
  1. 4
      AlphaWallet/Tokens/Views/TokenInstanceWebView.swift

@ -483,9 +483,7 @@ extension TokenInstanceWebView {
func signMessage(with type: SignMessageType, account: AlphaWallet.Address, callbackID: Int) {
guard let navigationController = delegate?.navigationControllerFor(tokenInstanceWebView: self) else { return }
let keystore = try! EtherKeystore(analyticsCoordinator: NoOpAnalyticsService())
let keystore = try! EtherKeystore(analyticsCoordinator: analyticsCoordinator)
firstly {
SignMessageCoordinator.promise(analyticsCoordinator: analyticsCoordinator, navigationController: navigationController, keystore: keystore, signType: type, account: account, source: .tokenScript)
}.done { data in

Loading…
Cancel
Save