Skip to content

Commit

Permalink
Type fix
Browse files Browse the repository at this point in the history
  • Loading branch information
bobo-k2 committed Sep 16, 2024
1 parent 06747e3 commit dc90c27
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/v2/repositories/implementations/SystemRepository.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { IApi } from 'src/v2/integration';
import { AccountDataModel, AccountInfoModel } from 'src/v2/models';
import { ISystemRepository } from 'src/v2/repositories';
import { Symbols } from 'src/v2/symbols';
import { Struct, u128, u32, U64, u64 } from '@polkadot/types';
import { Struct, u128, u32, u64 } from '@polkadot/types';
import { EventAggregator, NewBlockMessage } from 'src/v2/messaging';
import { BlockHash } from '@polkadot/types/interfaces';

Expand Down Expand Up @@ -82,7 +82,7 @@ export class SystemRepository implements ISystemRepository {

public async getBlockTimeInSeconds(): Promise<number> {
const api = await this.api.getApi();
const blockTime = <U64>api.consts.aura.slotDuration;
const blockTime = <u64>api.consts.aura.slotDuration;

return blockTime.toNumber() / 1000;
}
Expand Down

0 comments on commit dc90c27

Please sign in to comment.