Skip to content

Commit

Permalink
fix typo & renamed variables
Browse files Browse the repository at this point in the history
  • Loading branch information
Imod7 committed Apr 3, 2024
1 parent 294f9a1 commit 16d554f
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
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

0 comments on commit 16d554f

Please sign in to comment.