Skip to content

Commit

Permalink
add unit tests for version uniques
Browse files Browse the repository at this point in the history
  • Loading branch information
dudo50 committed Nov 4, 2024
1 parent 885e6a4 commit 50c1000
Show file tree
Hide file tree
Showing 23 changed files with 1,419 additions and 196 deletions.
8 changes: 8 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

24 changes: 21 additions & 3 deletions templates/parachain_two/pallets/xcnft/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,24 +49,42 @@ sp-io = { workspace = true, default-features = true }

pallet-balances = { workspace = true, default-features = true }

# For unit tests
xcm-builder = { workspace = true, default-features = true }
xcm-simulator = { workspace = true, default-features = true }
xcm-executor = { workspace = true, default-features = true }
sp-tracing = { workspace = true, default-features = true }
pallet-xcm = { workspace = true, default-features = true }
polkadot-core-primitives = { workspace = true, default-features = true }
polkadot-runtime-parachains = { workspace = true, default-features = true }
polkadot-parachain-primitives = { workspace = true, default-features = true }
pallet-message-queue = { workspace = true, default-features = true }

[features]
default = [ "std" ]
runtime-benchmarks = [
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"sp-runtime/runtime-benchmarks",
"xcm-builder/runtime-benchmarks",
"pallet-balances/runtime-benchmarks",
"pallet-uniques/runtime-benchmarks",
"pallet-xcm/runtime-benchmarks",
"pallet-message-queue/runtime-benchmarks",
"polkadot-parachain-primitives/runtime-benchmarks",
"polkadot-runtime-parachains/runtime-benchmarks",
"xcm-executor/runtime-benchmarks",
]
std = [
"codec/std",
"scale-info/std",
"pallet-uniques/std",
"frame-benchmarking?/std",
"frame-support/std",
"frame-system/std",
"pallet-uniques/std",
"sp-runtime/std",
"cumulus-pallet-xcm/std",
"cumulus-primitives-core/std",
"sp-std/std",
"xcm/std",
"xcm-builder/std",
Expand Down
2 changes: 1 addition & 1 deletion templates/parachain_two/pallets/xcnft/src/mock.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ mod test_runtime {
#[runtime::pallet_index(0)]
pub type System = frame_system;

#[runtime::pallet_index(1)]
#[runtime::pallet_index(5)]
pub type XcNFT = crate;

#[runtime::pallet_index(2)]
Expand Down
Loading

0 comments on commit 50c1000

Please sign in to comment.