Remove chainID from PushDevice

pull/2/head
Michael Scoff 7 years ago
parent db1f298fae
commit 8140c24626
  1. 1
      Trust/Models/PushDevice.swift
  2. 6
      Trust/Settings/Coordinators/PushNotificationsRegistrar.swift

@ -6,5 +6,4 @@ struct PushDevice: Encodable {
let deviceID: String
let token: String
let wallets: [String]
let chainID: Int
}

@ -33,8 +33,7 @@ class PushNotificationsRegistrar {
let device = PushDevice(
deviceID: UIDevice.current.identifierForVendor!.uuidString,
token: "",
wallets: [],
chainID: config.chainID
wallets: []
)
trustProvider.request(.unregister(device: device)) { _ in }
@ -49,8 +48,7 @@ class PushNotificationsRegistrar {
let device = PushDevice(
deviceID: UIDevice.current.identifierForVendor!.uuidString,
token: token,
wallets: addresses.map { $0.address },
chainID: config.chainID
wallets: addresses.map { $0.address }
)
trustProvider.request(.register(device: device)) { _ in }

Loading…
Cancel
Save