Skip to content

Commit

Permalink
restore tests
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewkmin committed Nov 12, 2024
1 parent 55a2107 commit 7844306
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions Tests/TurnkeySDKTests/TurnkeySDKTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -61,9 +61,9 @@ final class TurnkeySDKTests: XCTestCase {
case let .json(whoamiResponse):
// Assert the expected properties in the whoamiResponse
XCTAssertNotNil(whoamiResponse.organizationId)
XCTAssertEqual(whoamiResponse.organizationName, "andrew")
XCTAssertEqual(whoamiResponse.organizationName, "SDK E2E")
XCTAssertEqual(whoamiResponse.userId, expectedUserId!)
XCTAssertEqual(whoamiResponse.username, "root user")
XCTAssertEqual(whoamiResponse.username, "Root user")
// Add more assertions based on the expected response
}
case let .undocumented(statusCode, undocumentedPayload):
Expand Down Expand Up @@ -211,7 +211,7 @@ final class TurnkeySDKTests: XCTestCase {
let expectation = XCTestExpectation(description: "Sign transaction and handle response")

// Setup the Ethereum private key and web3 instance
let web3 = Web3(rpcURL: "https://sepolia.infura.io/v3/\(infuraAPIKey ?? "")") // Replace with actual URL and project ID
let web3 = Web3(rpcURL: "https://holesky.infura.io/v3/\(infuraAPIKey ?? "")") // Replace with actual URL and project ID
let from = try! EthereumAddress(hex: walletFromAddress ?? "", eip55: true)

firstly {
Expand Down Expand Up @@ -320,7 +320,6 @@ final class TurnkeySDKTests: XCTestCase {
web3.provider.send(request: request) { (response: Web3Response<EthereumData>) in
switch response.status {
case let .success(result):
// print("Transaction hash: \(result.hex())")
seal.fulfill(result.hex())
case let .failure(error):
seal.reject(error)
Expand Down

0 comments on commit 7844306

Please sign in to comment.