Skip to content

Commit

Permalink
Merge pull request #235 from tangem/IOS-2618_pass_service
Browse files Browse the repository at this point in the history
IOS-2618 Refactor OnlineCardVerifier initialization
  • Loading branch information
tureck1y authored Nov 28, 2022
2 parents 7652e19 + 5b1937c commit b1701de
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,11 @@ import Combine
/// Online verification for Tangem cards. Do not use for developer cards
@available(iOS 13.0, *)
public class OnlineCardVerifier {
private let networkService = NetworkService()
private let networkService: NetworkService

public init() {}
public init(with networkService: NetworkService = .init()) {
self.networkService = networkService
}

deinit {
Log.debug("OnlineCardVerifier deinit")
Expand Down

0 comments on commit b1701de

Please sign in to comment.