Skip to content

Commit

Permalink
Merge pull request #17 from Web3Auth/feat/use-fnd-network
Browse files Browse the repository at this point in the history
feat: use fnd network
  • Loading branch information
himanshuchawla009 authored Apr 8, 2024
2 parents 0cace5d + b93bf12 commit 8a7eca4
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 8a7eca4

Please sign in to comment.