|
|
|
@ -25,18 +25,18 @@ class ClaimOrderCoordinator { |
|
|
|
|
v: UInt8, |
|
|
|
|
r: String, |
|
|
|
|
s: String, |
|
|
|
|
completion: @escaping (Result<Void, AnyError>) -> Void |
|
|
|
|
completion: @escaping (Any) -> Void//Result<Void, AnyError>) -> Void |
|
|
|
|
) { |
|
|
|
|
let request = ClaimStormBirdOrder(expiry: expiry, indices: indices, v: v, r: r, s: s) |
|
|
|
|
web3.request(request: request) { result in |
|
|
|
|
self.web3.request(request: request) { result in |
|
|
|
|
switch result { |
|
|
|
|
//TODO handle cases for UI |
|
|
|
|
case .success(let res): |
|
|
|
|
print(res) |
|
|
|
|
//completion(res) |
|
|
|
|
completion(res) |
|
|
|
|
case .failure(let err): |
|
|
|
|
print(err) |
|
|
|
|
//completion(err) |
|
|
|
|
completion(err) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
} |
|
|
|
|