Skip to content

Commit

Permalink
chore: fix naming
Browse files Browse the repository at this point in the history
  • Loading branch information
drewstone committed Nov 16, 2024
1 parent c9bf823 commit 482d033
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions macros/context-derive/src/services.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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));
Expand All @@ -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
}

Expand Down Expand Up @@ -189,7 +189,7 @@ pub fn generate_context_impl(
let mut operator_delegations: Vec<(AccountId32, BTreeMap<AccountId32, BTreeMap<AssetId, Balance>>)> = 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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 482d033

Please sign in to comment.