Skip to content

Commit

Permalink
feat: use fnd network
Browse files Browse the repository at this point in the history
  • Loading branch information
ieow committed Apr 4, 2024
1 parent 8baa2b8 commit b93bf12
Showing 1 changed file with 2 additions and 32 deletions.
34 changes: 2 additions & 32 deletions Sources/SingleFactorAuth/SingleFactorAuthArgs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -50,41 +50,11 @@ public enum Web3AuthNetwork : Equatable, Hashable {
case CUSTOM(path: String)

public var path: String {
switch self {
case .SAPPHIRE_DEVNET:
return "sapphire_devnet"
case .SAPPHIRE_MAINNET:
return "sapphire_mainnet"
case .MAINNET:
return "mainnet"
case .TESTNET:
return "goerli"
case .CYAN, .AQUA, .CELESTE:
return "polygon-mainnet"
case let .CUSTOM(path):
return path
}
return self.network.path
}

public var name: String {
switch self {
case .SAPPHIRE_DEVNET:
return "sapphire_devnet"
case .SAPPHIRE_MAINNET:
return "sapphire_mainnet"
case .MAINNET:
return "mainnet"
case .TESTNET:
return "testnet"
case .CYAN :
return "cyan"
case .AQUA :
return "aqua"
case .CELESTE:
return "celeste"
case .CUSTOM(_):
return "custom"
}
return self.network.name
}

public var network: TorusNetwork {
Expand Down

0 comments on commit b93bf12

Please sign in to comment.