Skip to content

Commit

Permalink
Remove hack (since blockstack-ios was updated)
Browse files Browse the repository at this point in the history
  • Loading branch information
shreyasthiagaraj committed Oct 22, 2019
1 parent 741b69b commit 6f10067
Showing 1 changed file with 0 additions and 16 deletions.
16 changes: 0 additions & 16 deletions BlockstackSDK/ios/RNBlockstackSdk/RNBlockstackSdk.swift
Original file line number Diff line number Diff line change
Expand Up @@ -135,19 +135,3 @@ extension Encodable {
return (try? JSONSerialization.jsonObject(with: data, options: .allowFragments)).flatMap { $0 as? [String: Any] }
}
}

// TODO: Make public Blockstack SDK and remove this hack
extension AuthScope {
static func fromString(_ value: String) -> AuthScope? {
switch value {
case AuthScope.storeWrite.rawValue:
return .storeWrite
case AuthScope.publishData.rawValue:
return .publishData
case AuthScope.email.rawValue:
return .email
default:
return nil
}
}
}

0 comments on commit 6f10067

Please sign in to comment.