Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix typo & renamed variables
  • Loading branch information
Imod7 committed Apr 3, 2024
commit 16d554f9df3ad6aaf77b3292475425d57a0f8cb0
6 changes: 3 additions & 3 deletions src/controllers/runtime/RuntimeMetadataController.ts
Original file line number Diff line number Diff line change
Expand Up @@ -94,10 +94,10 @@ export default class RuntimeMetadataController extends AbstractController<Runtim
}

// Validation of the `metadataVersion` path parameter.
const versionM = metadataVersion.slice(1);
const metadataV = metadataVersion.slice(1);
const version = this.parseNumberOrThrow(
versionM,
`Version ${metadataVersion.slice(1).toString()} of metadata provided is not a number.`,
metadataV,
`Version ${metadataV.toString()} of metadata provided is not a number.`,
);

const regExPattern = new RegExp('^[vV][0-9]+$');
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export default class TransactionMaterialController extends AbstractController<Tr
}

/**
* Get the chain's metadata at the reuqested version in JSON or scale format
* Get the chain's metadata at the requested version in JSON or scale format
* depending on the `metadata` query param.
*
* @param _req Express Request
Expand Down