Skip to content

Commit

Permalink
Merge pull request #27 from torusresearch/fix/abi-dynamic-loading
Browse files Browse the repository at this point in the history
api dynamic loading issue temp fix
  • Loading branch information
chaitanyapotti authored Jun 21, 2022
2 parents 0626065 + 1609f22 commit cf36433
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 5 deletions.
4 changes: 3 additions & 1 deletion Sources/FetchNodeDetails/Contract/FNDJsonHelper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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\"}]}"
}
}
}
2 changes: 1 addition & 1 deletion Torus-fetchNodeDetails.podspec
Original file line number Diff line number Diff line change
@@ -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"
Expand Down
4 changes: 2 additions & 2 deletions cocoapods/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down
4 changes: 3 additions & 1 deletion cocoapods/cptest/ContentView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 : "[email protected]").done { result in
print(result)
}.catch { error in
print(error)
}
}
}
}

struct ContentView_Previews: PreviewProvider {
Expand Down

0 comments on commit cf36433

Please sign in to comment.