Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Merge pull request #25 from magiclabs/ariflo-sc-77952-update-show-set…
Browse files Browse the repository at this point in the history
…tings

Update `showSettings()` Return type to `UserMetadata`
  • Loading branch information
Ariflo authored May 16, 2023
2 parents c0cc9cd + 02f9e51 commit c303c7a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion MagicSDK.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
#
Pod::Spec.new do |s|
s.name = 'MagicSDK'
s.version = '8.1.0'
s.version = '8.1.1'
s.summary = 'Magic IOS SDK'

s.description = <<-DESC
Expand Down
4 changes: 2 additions & 2 deletions Sources/MagicSDK/Modules/User/UserModule.swift
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ public class UserModule: BaseModule {
/**
showSettings
*/
public func showSettings(response: @escaping Web3ResponseCompletion<String>) {
public func showSettings(response: @escaping Web3ResponseCompletion<UserMetadata>) {
if #available(iOS 14.0, *) {
UserModule.logger.warning("showSettings: \(BaseWarningLog.MA_Method)")
} else {
Expand All @@ -152,7 +152,7 @@ public class UserModule: BaseModule {
self.provider.send(request: request, response: response)
}

public func showSettings() -> Promise<String> {
public func showSettings() -> Promise<UserMetadata> {
return Promise { resolver in
showSettings(response: promiseResolver(resolver))
}
Expand Down
1 change: 1 addition & 0 deletions Sources/MagicSDK/Modules/User/UserResponse.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,5 @@ public struct UserMetadata: MagicResponse {
public let issuer: String?
public let publicAddress: String?
public let email: String?
public let phoneNumber: String?
}

0 comments on commit c303c7a

Please sign in to comment.