Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
arrudagates authored May 8, 2024
1 parent 4ce2810 commit f585bd6
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 81 deletions.
21 changes: 0 additions & 21 deletions INV4/pallet-inv4/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -73,24 +73,3 @@ runtime-benchmarks = [
"frame-system/runtime-benchmarks",
]
try-runtime = ["frame-support/try-runtime"]


# std = [
# "serde",
# "codec/std",
# "sp-runtime/std",
# "sp-std/std",
# "frame-support/std",
# "frame-system/std",
# "sp-io/std",
# "sp-core/std",
# "scale-info/std",
# "pallet-balances/std",
# "frame-benchmarking?/std",
# # "orml-asset-registry/std",
# "orml-tokens/std",
# # "orml-tokens2/std",
# # "orml-traits/std",
# # "orml-traits2/std",
# "xcm/std",
# ]
56 changes: 0 additions & 56 deletions INV4/pallet-inv4/src/tests/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ use sp_core::H256;
use sp_runtime::{AccountId32, BuildStorage};
use sp_std::{convert::TryInto, vec};

// type UncheckedExtrinsic = frame_system::mocking::MockUncheckedExtrinsic<Test>;
type Block = frame_system::mocking::MockBlock<Test>;
type Balance = u128;

Expand All @@ -28,43 +27,6 @@ pub const ALICE: AccountId = AccountId::new([0u8; 32]);
pub const BOB: AccountId = AccountId::new([1u8; 32]);
pub const CHARLIE: AccountId = AccountId::new([2u8; 32]);
pub const DAVE: AccountId = AccountId::new([3u8; 32]);
// AssetRegistry: orml_asset_registry,
// CoreAssets: orml_tokens2,

// impl Config for Test {
// type RuntimeEvent = RuntimeEvent;
// type Currency = Balances;

// type CoreId = <INV4 as Config>::CoreId;

// type RuntimeCall = RuntimeCall;

// type MaxCallers = MaxCallers;

// type MaxMetadata = MaxCallers;

// type RuntimeOrigin = RuntimeOrigin;

// type CoreSeedBalance = CoreSeedBalance;

// type CoreCreationFee = CoreCreationFee;

// type RelayCoreCreationFee = RelayCoreCreationFee;

// type RelayAssetId = RelayAssetId;

// type AssetsProvider = Tokens;

// type Tokens = Tokens;

// type FeeCharger = FeeCharger;

// type ParaId = <INV4 as Config>::ParaId;

// type MaxCallSize = MaxCallSize;

// type WeightInfo = ();
// }

frame_support::construct_runtime!(
pub enum Test
Expand All @@ -77,24 +39,6 @@ frame_support::construct_runtime!(
INV4: pallet,
}
);
// System: frame_system,
// Balances: pallet_balances,
// INV4: pallet,
// Tokens: orml_tokens,

// AssetRegistry: orml_asset_registry,
// CoreAssets: orml_tokens2,

// System: frame_system::{Pallet, Call, Config, Storage, Event<T>},
// Balances: pallet_balances::{Pallet, Call, Storage, Event<T>, Config<T>},
// INV4: pallet::{Pallet, Call, Storage, Event<T>, Origin<T>},
// Tokens: orml_tokens::{Pallet, Call, Storage, Event<T>},
// AssetRegistry: orml_asset_registry::{Pallet, Call, Storage, Event<T>, Config<T>},
// CoreAssets: orml_tokens2::{Pallet, Call, Storage, Event<T>},
// where
// Block = Block,
// NodeBlock = Block,
// UncheckedExtrinsic = UncheckedExtrinsic,

pub struct TestBaseCallFilter;
impl Contains<RuntimeCall> for TestBaseCallFilter {
Expand Down
4 changes: 0 additions & 4 deletions OCIF/staking/src/testing/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,6 @@ pub(crate) const REGISTER_DEPOSIT: Balance = 10;

construct_runtime!(
pub struct Test
// where
// Block = Block,
// NodeBlock = Block,
// UncheckedExtrinsic = UncheckedExtrinsic,
{
System: frame_system,
Balances: pallet_balances,
Expand Down

0 comments on commit f585bd6

Please sign in to comment.