Skip to content

Commit

Permalink
chore: use genesis
Browse files Browse the repository at this point in the history
  • Loading branch information
kylezs committed Sep 21, 2023
1 parent e2cf2ba commit fccfe67
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions state-chain/pallets/cf-ingress-egress/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -115,17 +115,12 @@ impl crate::Config for Test {
pub const ALICE: <Test as frame_system::Config>::AccountId = 123u64;
pub const BROKER: <Test as frame_system::Config>::AccountId = 456u64;

// TODO: Use genesis config here?
// Configure a mock runtime to test the pallet.
impl_test_helpers! {
Test,
RuntimeGenesisConfig {
system: Default::default(),
ingress_egress: Default::default(),
},
|| {
DepositChannelLifetime::<Test>::put(100);
},
ingress_egress: IngressEgressConfig { deposit_channel_lifetime: 100 },
}
}

type TestChainAccount = <<Test as crate::Config>::TargetChain as Chain>::ChainAccount;
Expand Down

0 comments on commit fccfe67

Please sign in to comment.