diff --git a/Sources/Web3Modal/Core/W3MAPIInteractor.swift b/Sources/Web3Modal/Core/W3MAPIInteractor.swift index 0ebded1..10b7bf2 100644 --- a/Sources/Web3Modal/Core/W3MAPIInteractor.swift +++ b/Sources/Web3Modal/Core/W3MAPIInteractor.swift @@ -37,8 +37,8 @@ final class W3MAPIInteractor: ObservableObject { search: search, projectId: Web3Modal.config.projectId, metadata: Web3Modal.config.metadata, - recommendedIds: Web3Modal.config.recommendedWalletIds, - excludedIds: Web3Modal.config.excludedWalletIds + includeIds: Web3Modal.config.recommendedWalletIds, + excludeIds: Web3Modal.config.excludedWalletIds ) let httpClient = HTTPNetworkClient(host: "api.web3modal.com") @@ -113,8 +113,8 @@ final class W3MAPIInteractor: ObservableObject { search: "", projectId: Web3Modal.config.projectId, metadata: Web3Modal.config.metadata, - recommendedIds: Web3Modal.config.recommendedWalletIds, - excludedIds: Web3Modal.config.excludedWalletIds + includeIds: Web3Modal.config.recommendedWalletIds, + excludeIds: Web3Modal.config.excludedWalletIds ) ) ) diff --git a/Sources/Web3Modal/Networking/Web3ModalAPI.swift b/Sources/Web3Modal/Networking/Web3ModalAPI.swift index eb835d8..2f6ca64 100644 --- a/Sources/Web3Modal/Networking/Web3ModalAPI.swift +++ b/Sources/Web3Modal/Networking/Web3ModalAPI.swift @@ -7,8 +7,8 @@ enum Web3ModalAPI: HTTPService { let search: String? let projectId: String let metadata: AppMetadata - let recommendedIds: [String] - let excludedIds: [String] + let includeIds: [String] + let excludeIds: [String] } struct GetIosDataParams { @@ -44,8 +44,8 @@ enum Web3ModalAPI: HTTPService { "page": "\(params.page)", "entries": "\(params.entries)", "search": params.search ?? "", - "recommendedIds": params.recommendedIds.joined(separator: ","), - "excludedIds": params.excludedIds.joined(separator: ","), + "include": params.includeIds.joined(separator: ","), + "exclude": params.excludeIds.joined(separator: ","), "platform": "ios", ] .compactMapValues { value in