Skip to content

Commit

Permalink
minor renames
Browse files Browse the repository at this point in the history
  • Loading branch information
lemunozm committed Oct 16, 2023
1 parent 848339d commit 4b159c5
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion runtime/integration-tests/src/generic/envs/fudge_env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ pub struct FudgeEnv<T: Runtime + FudgeSupport> {

impl<T: Runtime + FudgeSupport> Env<T> for FudgeEnv<T> {
fn from_storage(storage: Storage) -> Self {
let mut handle = T::FudgeHandle::build(Storage::default(), storage);
let mut handle = T::FudgeHandle::new(Storage::default(), storage);

handle.evolve();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,9 +122,9 @@ pub trait FudgeHandle<T: Runtime> {
fn with_mut_state<R>(&mut self, chain: Chain, f: impl FnOnce() -> R) -> R;
fn evolve(&mut self);

fn build(relay_storage: Storage, parachain_storage: Storage) -> Self;
fn new(relay_storage: Storage, parachain_storage: Storage) -> Self;

fn build_relay(
fn new_relay_builder(
storage: Storage,
) -> RelaychainBuilder<Self::RelayConstructApi, Self::RelayRuntime> {
sp_tracing::enter_span!(sp_tracing::Level::INFO, "Relay - StartUp");
Expand Down Expand Up @@ -189,7 +189,7 @@ pub trait FudgeHandle<T: Runtime> {
RelaychainBuilder::new(init, |client| (cidp(client), dp))
}

fn build_parachain(
fn new_parachain_builder(
relay: &RelaychainBuilder<Self::RelayConstructApi, Self::RelayRuntime>,
storage: Storage,
) -> ParachainBuilder<T::Block, Self::ParachainConstructApi> {
Expand Down
6 changes: 3 additions & 3 deletions runtime/integration-tests/src/generic/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ macro_rules! impl_fudge_support {
const PARA_ID: u32 = $parachain_id;
const RELAY_CODE: Option<&'static [u8]> = $relay_path::WASM_BINARY;

fn build(relay_storage: Storage, parachain_storage: Storage) -> Self {
let relay = Self::build_relay(relay_storage);
let parachain = Self::build_parachain(&relay, parachain_storage);
fn new(relay_storage: Storage, parachain_storage: Storage) -> Self {
let relay = Self::new_relay_builder(relay_storage);
let parachain = Self::new_parachain_builder(&relay, parachain_storage);

Self::new(relay, parachain).unwrap()
}
Expand Down

0 comments on commit 4b159c5

Please sign in to comment.