Fix the lint errors

Most are object keys out of order after the rename (dicle, pezkuwi,
bizinikiwi, teyrchains and zagros sort differently from the names they
replaced); they are sorted, behaviour is unchanged. The rest:

- createClass: header.hash is already the BlockHash type; the
  `as any` cast is removed
- ScProvider: WellKnownChain is a string union in @bizinikiwi/connect,
  so `string | WellKnownChain` was `string`; the spec parameter says so
- ScProvider: the jsonRpcResponses loop is a named async function whose
  rejection (chain removed, client terminated) is caught explicitly
  instead of a floating promise
- the fake chain in the spec no longer needs a non-null assertion
- Extrinsic.hash: redundant non-null assertion removed
- metadata-get.mjs writes the 2026 header
This commit is contained in:
Satoshi Qazi Muhammed authored and SatoshiQaziMuhammed committed 2026-10-08 03:23:10 +04:00
1 parent 611d410f28
commit 7c6cac97da
19 files changed
+87 -81

No files matched your search

+2 -3
View File
@@ -1,4 +1,4 @@
// Copyright 2017-2025 @pezkuwi/api authors & contributors
// Copyright 2017-2026 @pezkuwi/api authors & contributors
// SPDX-License-Identifier: Apache-2.0
/* eslint-disable no-dupe-class-members */
@@ -54,8 +54,7 @@ function makeEraOptions (api: ApiInterfaceRx, registry: Registry, partialOptions
}
return makeSignOptions(api, partialOptions, {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
blockHash: header.hash as any,
blockHash: header.hash,
era: registry.createTypeUnsafe<ExtrinsicEra>('ExtrinsicEra', [{
current: header.number,
period: partialOptions.era || mortalLength