Skip to content

Commit

Permalink
fix typos in methods names
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Dec 1, 2023
1 parent e69ce5b commit 28273e5
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 12 deletions.
6 changes: 3 additions & 3 deletions src/services/pallets/PalletsConstantsService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -42,8 +42,8 @@ export class PalletsConstantsService extends AbstractPalletsService {

const [palletMeta, palletMetaIdx] = this.findPalletMeta(palletMetadata, palletId, metadataFieldType);

// Even if `constantItemMeta` is not used, we call this function to ensure it exists. The side effects
// of the constant item not existing are that `findConstantItemMeta` will throw.
// Even if `constantItemMetadata` is not used, we call this function to ensure it exists. The side effects
// of the constant item not existing are that `getConstItemMeta` will throw.
const constantItemMetadata = this.findPalletFieldItemMeta(
historicApi,
palletMeta,
Expand Down
4 changes: 2 additions & 2 deletions src/services/pallets/PalletsDispatchablesService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ export class PalletsDispatchablesService extends AbstractPalletsService {

const [palletMeta, palletMetaIdx] = this.findPalletMeta(palletMetadata, palletId, metadataFieldType);

// Even if `dispatchableItemMeta` is not used, we call this function to ensure it exists. The side effects
// of the dispatchable item not existing are that `findPalletFieldItemMeta` will throw.
// Even if `dispatchableItemMetadata` is not used, we call this function to ensure it exists. The side effects
// of the dispatchable item not existing are that `getDispatchablesItemMeta` will throw.
const dispatchableItemMetadata = this.findPalletFieldItemMeta(
historicApi,
palletMeta,
Expand Down
4 changes: 2 additions & 2 deletions src/services/pallets/PalletsErrorsService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ export class PalletsErrorsService extends AbstractPalletsService {

const [palletMeta, palletMetaIdx] = this.findPalletMeta(palletMetadata, palletId, metadataFieldType);

// Even if `errorItemMeta` is not used, we call this function to ensure it exists. The side effects
// of the error item not existing are that `findErrorItemMeta` will throw.
// Even if `errorItemMetadata` is not used, we call this function to ensure it exists. The side effects
// of the error item not existing are that `getErrorItemMeta` will throw.
const errorItemMetadata = this.findPalletFieldItemMeta(
historicApi,
palletMeta,
Expand Down
6 changes: 3 additions & 3 deletions src/services/pallets/PalletsEventsService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -44,8 +44,8 @@ export class PalletsEventsService extends AbstractPalletsService {

const [palletMeta, palletMetaIdx] = this.findPalletMeta(palletMetadata, palletId, metadataFieldType);

// Even if `eventItemMeta` is not used, we call this function to ensure it exists. The side effects
// of the event item not existing are that `findPalletFieldItemMeta` will throw.
// Even if `eventItemMetadata` is not used, we call this function to ensure it exists. The side effects
// of the event item not existing are that `getEventItemMeta` will throw.
const eventItemMetadata = this.findPalletFieldItemMeta(
historicApi,
palletMeta,
Expand Down
4 changes: 2 additions & 2 deletions src/services/pallets/PalletsStorageService.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// Copyright 2017-2022 Parity Technologies (UK) Ltd.
// Copyright 2017-2023 Parity Technologies (UK) Ltd.
// This file is part of Substrate API Sidecar.
//
// Substrate API Sidecar is free software: you can redistribute it and/or modify
Expand Down Expand Up @@ -45,7 +45,7 @@ export class PalletsStorageService extends AbstractPalletsService {
const palletName = stringCamelCase(palletMeta.name);

// Even if `storageItemMeta` is not used, we call this function to ensure it exists. The side effects
// of the storage item not existing are that `findPalletItemMeta` will throw.
// of the storage item not existing are that `getStorageItemMeta` will throw.
const storageItemMeta = this.findPalletFieldItemMeta(
historicApi,
palletMeta,
Expand Down

0 comments on commit 28273e5

Please sign in to comment.