Skip to content

Commit

Permalink
fix candidate type to V5
Browse files Browse the repository at this point in the history
  • Loading branch information
TarikGul committed Oct 14, 2023
1 parent 8d1c279 commit 1d89c09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/paras/ParasService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ import {
ParaLifecycle,
WinningData,
} from '@polkadot/types/interfaces';
import { PolkadotPrimitivesV4CandidateReceipt } from '@polkadot/types/lookup';
import { PolkadotPrimitivesV5CandidateReceipt } from '@polkadot/types/lookup';
import { ITuple } from '@polkadot/types/types';
import { BN_ZERO } from '@polkadot/util';
import BN from 'bn.js';
Expand Down Expand Up @@ -456,7 +456,7 @@ export class ParasService extends AbstractService {
const paraHeaders: IParasHeaders = {};
paraInclusion.forEach(({ event }) => {
const { data } = event;
const paraData = data[0] as PolkadotPrimitivesV4CandidateReceipt;
const paraData = data[0] as PolkadotPrimitivesV5CandidateReceipt;
const headerData = data[1] as Bytes;
const { paraHead, paraId } = paraData.descriptor;
const header = api.createType('Header', headerData);
Expand Down

0 comments on commit 1d89c09

Please sign in to comment.