Skip to content
Snippets Groups Projects

Fix #262 distance oracle pool index

Merged Benjamin Gallois requested to merge fix-262 into master
7 files
+ 112
73
Compare changes
  • Side-by-side
  • Inline
Files
7
@@ -19,11 +19,12 @@
use crate::runtime;
use log::debug;
use subxt::utils::H256;
pub type Client = subxt::OnlineClient<crate::RuntimeConfig>;
pub type AccountId = subxt::utils::AccountId32;
pub type IdtyIndex = u32;
pub type EvaluationPool =
runtime::runtime_types::pallet_distance::types::EvaluationPool<AccountId, IdtyIndex>;
pub type H256 = subxt::utils::H256;
pub async fn client(rpc_url: impl AsRef<str>) -> Client {
Client::from_insecure_url(rpc_url)
@@ -54,7 +55,7 @@ pub async fn current_pool(
client: &Client,
parent_hash: H256,
current_pool_index: u32,
) -> Option<runtime::runtime_types::pallet_distance::types::EvaluationPool<AccountId, IdtyIndex>> {
) -> Option<EvaluationPool> {
client
.storage()
.at(parent_hash)
Loading