From 482d033db0dc852b12d775831d26b7bf4e416ce2 Mon Sep 17 00:00:00 2001 From: Drew Stone Date: Sat, 16 Nov 2024 23:13:46 +0800 Subject: [PATCH] chore: fix naming --- macros/context-derive/src/services.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/macros/context-derive/src/services.rs b/macros/context-derive/src/services.rs index 249b1b95..79884af7 100644 --- a/macros/context-derive/src/services.rs +++ b/macros/context-derive/src/services.rs @@ -132,7 +132,7 @@ pub fn generate_context_impl( let mut operator_metadata = Vec::new(); for operator in operators { - let metadata_storage_key = api::storage().multi_asset_delgations().operators(operator.clone()); + let metadata_storage_key = api::storage().multi_asset_delegations().operators(operator.clone()); let operator_metadata_result = storage.fetch(&metadata_storage_key).await?; if let Some(metadata) = operator_metadata_result { operator_metadata.push((operator, metadata)); @@ -155,7 +155,7 @@ pub fn generate_context_impl( use gadget_sdk::ext::subxt; let storage = client.storage().at_latest().await?; - let metadata_storage_key = api::storage().multi_asset_delgations().operators(operator); + let metadata_storage_key = api::storage().multi_asset_delegations().operators(operator); storage.fetch(&metadata_storage_key).await } @@ -189,7 +189,7 @@ pub fn generate_context_impl( let mut operator_delegations: Vec<(AccountId32, BTreeMap>)> = Vec::new(); for operator in operators { - let delegations_storage_key = api::storage().multi_asset_delgations().delegations_to(operator.clone()); + let delegations_storage_key = api::storage().multi_asset_delegations().delegations_to(operator.clone()); let delegations_result = storage.fetch(&delegations_storage_key).await?; if let Some(delegations) = delegations_result { @@ -218,7 +218,7 @@ pub fn generate_context_impl( use gadget_sdk::ext::subxt; let storage = client.storage().at_latest().await?; - let delegations_storage_key = api::storage().multi_asset_delgations().delegations_to(operator); + let delegations_storage_key = api::storage().multi_asset_delegations().delegations_to(operator); let delegations_result = storage.fetch(&delegations_storage_key).await?; match delegations_result {