mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
21 lines
504 B
Swift
21 lines
504 B
Swift
//
|
|
// KeyInfo+SharedFetchRequest.swift
|
|
// Multisig
|
|
//
|
|
// Created by Dmitry Bespalov on 26.07.21.
|
|
// Copyright © 2021 Gnosis Ltd. All rights reserved.
|
|
//
|
|
|
|
import Foundation
|
|
import CoreData
|
|
|
|
extension NSFetchRequest where ResultType == KeyInfo {
|
|
/// return keys with matching address
|
|
func by(address: Address) -> Self {
|
|
sortDescriptors = []
|
|
predicate = NSPredicate(format: "addressString CONTAINS[c] %@", address.checksummed)
|
|
fetchLimit = 1
|
|
return self
|
|
}
|
|
}
|