|
|
|
@ -106,7 +106,7 @@ class OpenSea { |
|
|
|
|
|
|
|
|
|
private func fetchPage(forOwner owner: AlphaWallet.Address, offset: Int, sum: [AlphaWallet.Address: [OpenSeaNonFungible]] = [:], completion: @escaping (ResultResult<[AlphaWallet.Address: [OpenSeaNonFungible]], AnyError>.t) -> Void) { |
|
|
|
|
let baseURL = getBaseURLForOpensea() |
|
|
|
|
guard let url = URL(string: "\(baseURL)api/v1/assets/?owner=\(owner.eip55String)&order_by=current_price&order_direction=asc&limit=200&offset=\(offset)") else { |
|
|
|
|
guard let url = URL(string: "\(baseURL)api/v1/assets/?owner=\(owner.eip55String)&order_by=current_price&order_direction=asc&limit=50&offset=\(offset)") else { |
|
|
|
|
completion(.failure(AnyError(OpenSeaError(localizedDescription: "Error calling \(baseURL) API \(Thread.isMainThread)")))) |
|
|
|
|
return |
|
|
|
|
} |
|
|
|
|