mirror of
https://github.com/luxfi/safe-ios.git
synced 2026-10-30 15:19:20 +00:00
20 lines
415 B
Swift
20 lines
415 B
Swift
//
|
|
// Chain+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 == Chain {
|
|
func by(id: String) -> Self {
|
|
sortDescriptors = []
|
|
predicate = NSPredicate(format: "id == %@", id)
|
|
fetchLimit = 1
|
|
return self
|
|
}
|
|
}
|