Skip to content
This repository has been archived by the owner on Oct 22, 2024. It is now read-only.

Commit

Permalink
Remove hardcode variable be more general
Browse files Browse the repository at this point in the history
  • Loading branch information
yrong committed Jan 26, 2024
1 parent 4d2c7a7 commit 243fd44
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions cumulus/parachains/runtimes/test-utils/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ use polkadot_parachain_primitives::primitives::{
};
use sp_consensus_aura::{SlotDuration, AURA_ENGINE_ID};
use sp_core::{Encode, U256};
use sp_runtime::{traits::Header, BuildStorage, Digest, DigestItem};
use sp_runtime::{traits::Header, BuildStorage, Digest, DigestItem, SaturatedConversion};
use xcm::{
latest::{Asset, Location, XcmContext, XcmHash},
prelude::*,
Expand Down Expand Up @@ -325,7 +325,7 @@ where

let parent_head = HeadData(header.encode());
let sproof_builder = RelayStateSproofBuilder {
para_id: 1013.into(),
para_id: <Runtime>::SelfParaId::get(),
included_para_head: parent_head.clone().into(),
..Default::default()
};
Expand All @@ -335,9 +335,9 @@ where
let inherent_data = ParachainInherentData {
validation_data: PersistedValidationData {
parent_head,
relay_parent_number: 10,
relay_parent_number: (block_number.saturated_into::<u32>() * 2 + 1).into(),
relay_parent_storage_root,
max_pov_size: 10000,
max_pov_size: 100_000_000,
},
relay_chain_state,
downward_messages: Default::default(),
Expand Down

0 comments on commit 243fd44

Please sign in to comment.