Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.

Commit a0e00dc

Browse files
authored
Remove Default, HasCompact, and TypeInfo trait bounds on AssetId (#12740)
* Remove Default, HasCompact, and TypeInfo trait bounds on AssetId * don't use default in benchmarking * add helper trait * add helper to assets tx payment test * docs fixes * i'm confused * aha, cargo * move affected dispatchable calls into new indices * Helper -> BenchmarkHelper * benchmark use of helper * actually, don't break every call interface * use into on AssetIdParameter * Remove From from AssetIdParameter and use it in BenchmarkHelper * include from Co-authored-by: parity-processbot <>
1 parent d833e15 commit a0e00dc

File tree

7 files changed

+254
-200
lines changed

7 files changed

+254
-200
lines changed

Cargo.lock

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

bin/node/runtime/src/lib.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1440,6 +1440,7 @@ impl pallet_assets::Config for Runtime {
14401440
type RuntimeEvent = RuntimeEvent;
14411441
type Balance = u128;
14421442
type AssetId = u32;
1443+
type AssetIdParameter = codec::Compact<u32>;
14431444
type Currency = Balances;
14441445
type CreateOrigin = AsEnsureOriginWithArg<EnsureSigned<AccountId>>;
14451446
type ForceOrigin = EnsureRoot<AccountId>;
@@ -1453,6 +1454,8 @@ impl pallet_assets::Config for Runtime {
14531454
type Extra = ();
14541455
type WeightInfo = pallet_assets::weights::SubstrateWeight<Runtime>;
14551456
type RemoveItemsLimit = ConstU32<1000>;
1457+
#[cfg(feature = "runtime-benchmarks")]
1458+
type BenchmarkHelper = ();
14561459
}
14571460

14581461
parameter_types! {

0 commit comments

Comments
 (0)