diff --git a/packages/api-derive/src/tx/signingInfo.ts b/packages/api-derive/src/tx/signingInfo.ts index 8b489d166012..7a38c91980b2 100644 --- a/packages/api-derive/src/tx/signingInfo.ts +++ b/packages/api-derive/src/tx/signingInfo.ts @@ -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; diff --git a/packages/typegen/src/interfacesTs.ts b/packages/typegen/src/interfacesTs.ts index fdc3c60647c9..95839b06f9a1 100644 --- a/packages/typegen/src/interfacesTs.ts +++ b/packages/typegen/src/interfacesTs.ts @@ -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({ assetHubPolkadot, assetHubKusama, kusama, polkadot, substrate }); +const METAS = Object.entries({ assetHubKusama, assetHubPolkadot, kusama, polkadot, substrate }); export function main (): void { generateDefaultInterface();