Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Nov 8, 2024
1 parent 27eae22 commit 7379267
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/api-derive/src/tx/signingInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ interface Aura {
function babeOrAuraPeriod (api: DeriveApi): BN | undefined {
const period = api.consts.babe?.expectedBlockTime ||
// this will be present ones https://github.com/paritytech/polkadot-sdk/pull/3732 is merged
(api.consts['aura'] as unknown as Aura)?.slotDuration ||
(api.consts.aura as unknown as Aura)?.slotDuration ||
api.consts.timestamp?.minimumPeriod.muln(2);

return period && period.isZero && !period.isZero() ? period : undefined;
Expand Down
2 changes: 1 addition & 1 deletion packages/typegen/src/interfacesTs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import substrate from '@polkadot/types-support/metadata/v15/substrate-hex';
import { generateDefaultConsts, generateDefaultErrors, generateDefaultEvents, generateDefaultInterface, generateDefaultLookup, generateDefaultQuery, generateDefaultRpc, generateDefaultRuntime, generateDefaultTsDef, generateDefaultTx } from './generate/index.js';

const BASE = 'packages/api-augment/src';
const METAS = Object.entries<HexString>({ assetHubPolkadot, assetHubKusama, kusama, polkadot, substrate });
const METAS = Object.entries<HexString>({ assetHubKusama, assetHubPolkadot, kusama, polkadot, substrate });

export function main (): void {
generateDefaultInterface();
Expand Down

0 comments on commit 7379267

Please sign in to comment.