diff --git a/zrml/asset-router/src/lib.rs b/zrml/asset-router/src/lib.rs index fdd33dc72..bb9051aeb 100644 --- a/zrml/asset-router/src/lib.rs +++ b/zrml/asset-router/src/lib.rs @@ -266,7 +266,7 @@ pub mod pallet { } } - safety_counter += 1; + safety_counter = safety_counter.saturating_add(1); } } diff --git a/zrml/asset-router/src/tests/managed_destroy.rs b/zrml/asset-router/src/tests/managed_destroy.rs index cd59cfd64..568325206 100644 --- a/zrml/asset-router/src/tests/managed_destroy.rs +++ b/zrml/asset-router/src/tests/managed_destroy.rs @@ -105,7 +105,7 @@ fn adds_multi_assets_properly() { } #[test] -fn destroys_assets_fully_properly() { +fn destroys_assets_fully_works_properly() { ExtBuilder::default().build().execute_with(|| { let assets_raw = [(CAMPAIGN_ASSET, None), (CUSTOM_ASSET, None), (MARKET_ASSET, None)]; let assets = BTreeMap::from_iter(assets_raw.to_vec());