Skip to content
This repository has been archived by the owner on Dec 2, 2024. It is now read-only.

Commit

Permalink
IOS-7524 Add public providers handling for bittensor (#788)
Browse files Browse the repository at this point in the history
  • Loading branch information
fedorov-d authored Aug 1, 2024
1 parent 686f328 commit a89d041
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,14 @@ struct BittensorWalletAssembly: WalletManagerAssembly {
return PolkadotWalletManager(network: network, wallet: input.wallet).then {
let runtimeVersionProvider = SubstrateRuntimeVersionProvider(network: network)
let networkConfig = input.networkConfig
var providers = [PolkadotJsonRpcProvider]()

let blockchain = input.blockchain
let config = input.blockchainSdkConfig

var providers: [PolkadotJsonRpcProvider] = APIResolver(blockchain: blockchain, config: config)
.resolveProviders(apiInfos: input.apiInfo) { nodeInfo, _ in
PolkadotJsonRpcProvider(node: nodeInfo, configuration: input.networkConfig)
}

let dwellirResolver = DwellirAPIResolver(config: input.blockchainSdkConfig)

Expand Down
2 changes: 1 addition & 1 deletion BlockchainSdkExample/config

0 comments on commit a89d041

Please sign in to comment.