diff --git a/Sources/FetchNodeDetails/Contract/FNDJsonHelper.swift b/Sources/FetchNodeDetails/Contract/FNDJsonHelper.swift index 9466c0b..f474cfd 100644 --- a/Sources/FetchNodeDetails/Contract/FNDJsonHelper.swift +++ b/Sources/FetchNodeDetails/Contract/FNDJsonHelper.swift @@ -42,7 +42,9 @@ class FNDJsonHelper { print(str) return str } catch let err { - fatalError(err.localizedDescription) + print(err.localizedDescription) + //need to fix + return "{\"abi\":[{\"inputs\":[{\"internalType\":\"string\",\"name\":\"_verifier\",\"type\":\"string\"},{\"internalType\":\"bytes32\",\"name\":\"hashedVerifierId\",\"type\":\"bytes32\"}],\"name\":\"getNodeSet\",\"outputs\":[{\"internalType\":\"uint256\",\"name\":\"currentEpoch\",\"type\":\"uint256\"},{\"internalType\":\"string[]\",\"name\":\"torusNodeEndpoints\",\"type\":\"string[]\"},{\"internalType\":\"uint256[]\",\"name\":\"torusNodePubX\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"torusNodePubY\",\"type\":\"uint256[]\"},{\"internalType\":\"uint256[]\",\"name\":\"torusIndexes\",\"type\":\"uint256[]\"}],\"stateMutability\":\"view\",\"type\":\"function\"}]}" } } } diff --git a/Torus-fetchNodeDetails.podspec b/Torus-fetchNodeDetails.podspec index 0eb971b..ee0d645 100644 --- a/Torus-fetchNodeDetails.podspec +++ b/Torus-fetchNodeDetails.podspec @@ -1,6 +1,6 @@ Pod::Spec.new do |spec| spec.name = "Torus-fetchNodeDetails" - spec.version = "2.6.8" + spec.version = "2.6.9" spec.platform = :ios, "11.0" spec.summary = "Fetches the node details from torus nodelist smart contract" spec.homepage = "https://github.com/torusresearch/fetch-node-details-swift" diff --git a/cocoapods/Podfile.lock b/cocoapods/Podfile.lock index 74d7f3e..7c52986 100644 --- a/cocoapods/Podfile.lock +++ b/cocoapods/Podfile.lock @@ -33,8 +33,8 @@ SPEC CHECKSUMS: GenericJSON: a6e74e2c457f8693caab08e0eafde7d97e6666de PromiseKit: 3b2b6995e51a954c46dbc550ce3da44fbfb563c5 secp256k1.swift: a7e7a214f6db6ce5db32cc6b2b45e5c4dd633634 - Torus-fetchNodeDetails: 0e6b5a976bc1e0610d9b2d8c8ab1f744bc389297 - web3.swift: ce00a5e6e39fb184e33e3622e8be22ae53205e57 + Torus-fetchNodeDetails: 288dc8dc9ee50e5e1e318fff31dce562d4eb2bdb + web3.swift: c6c3bf1f853743f8a7a58d263e5f7e46545e22c7 PODFILE CHECKSUM: 33add72342a492adb43676625c404c97ced731da diff --git a/cocoapods/cptest/ContentView.swift b/cocoapods/cptest/ContentView.swift index df43970..186c752 100644 --- a/cocoapods/cptest/ContentView.swift +++ b/cocoapods/cptest/ContentView.swift @@ -24,13 +24,15 @@ struct ContentView: View { } func execute(){ - let fnd = FetchNodeDetails(proxyAddress : "0x9f072ba19b3370e512aa1b4bfcdaf97283168005", network: .MAINNET) + Task{ + let fnd = FetchNodeDetails(proxyAddress: "0x6258c9d6c12ed3edda59a1a6527e469517744aa7", network: .ROPSTEN) fnd.getNodeDetails(verifier : "google", verifierID : "hello@tor.us").done { result in print(result) }.catch { error in print(error) } } + } } struct ContentView_Previews: PreviewProvider {