Skip to content

Commit

Permalink
imporve usage of network
Browse files Browse the repository at this point in the history
  • Loading branch information
AyushBherwani1998 committed Apr 4, 2024
1 parent 6200742 commit 7ecf377
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Sources/SingleFactorAuth/SingleFactorAuth.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@ public class SingleFactorAuth {

public init(singleFactorAuthArgs: SingleFactorAuthArgs) {
sessionManager = .init()
nodeDetailManager = NodeDetailManager(network: singleFactorAuthArgs.getNetwork())
nodeDetailManager = NodeDetailManager(network: singleFactorAuthArgs.getNetwork().network)
torusUtils = TorusUtils(
enableOneKey: true,
signerHost: singleFactorAuthArgs.getSignerUrl()! + "/api/sign",
allowHost: singleFactorAuthArgs.getSignerUrl()! + "/api/allow",
network: singleFactorAuthArgs.getNetwork(),
network: singleFactorAuthArgs.getNetwork().network,
clientId: singleFactorAuthArgs.getWeb3AuthClientId()
)
}
Expand Down
4 changes: 2 additions & 2 deletions Sources/SingleFactorAuth/SingleFactorAuthArgs.swift
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ public class SingleFactorAuthArgs {
return web3AuthClientId
}

public func getNetwork() -> TorusNetwork {
return network.network
public func getNetwork() -> Web3AuthNetwork {
return network
}

public func getSignerUrl() -> String? {
Expand Down

0 comments on commit 7ecf377

Please sign in to comment.