diff --git a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs index 0eaffa9747..ce7099a8f5 100644 --- a/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-kusama/src/lib.rs @@ -278,8 +278,6 @@ parameter_types! { // https://github.com/paritytech/substrate/blob/069917b/frame/assets/src/lib.rs#L257L271 pub const MetadataDepositBase: Balance = system_para_deposit(1, 68); pub const MetadataDepositPerByte: Balance = system_para_deposit(0, 1); - /// The asset ID's auto increment for trusted assets planned with the next release. - pub const TrustAssetIdAutoIncrement: AssetIdForTrustBackedAssets = 50_000_000; } /// We allow root to execute privileged asset operations. @@ -296,7 +294,7 @@ impl EnsureOriginWithArg o: RuntimeOrigin, a: &AssetIdForTrustBackedAssets, ) -> Result { - if a >= &TrustAssetIdAutoIncrement::get() { + if *a >= 50_000_000 { return Err(o); } as EnsureOrigin>::try_origin(o) diff --git a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs index 6bae1eeae1..23b34cd802 100644 --- a/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs +++ b/system-parachains/asset-hubs/asset-hub-polkadot/src/lib.rs @@ -296,8 +296,6 @@ parameter_types! { // https://github.com/paritytech/substrate/blob/069917b/frame/assets/src/lib.rs#L257L271 pub const MetadataDepositBase: Balance = system_para_deposit(1, 68); pub const MetadataDepositPerByte: Balance = system_para_deposit(0, 1); - /// The asset ID's auto increment for trusted assets planned with the next release. - pub const TrustAssetIdAutoIncrement: AssetIdForTrustBackedAssets = 50_000_000; } /// We allow root to execute privileged asset operations. @@ -314,7 +312,7 @@ impl EnsureOriginWithArg o: RuntimeOrigin, a: &AssetIdForTrustBackedAssets, ) -> Result { - if a >= &TrustAssetIdAutoIncrement::get() { + if *a >= 50_000_000 { return Err(o); } as EnsureOrigin>::try_origin(o)