From bcaef0e5273dffa3def7485281953ebee267a9fa Mon Sep 17 00:00:00 2001 From: Harald Heckmann Date: Mon, 22 Jan 2024 19:36:47 +0100 Subject: [PATCH] Check Bob's balance in MultiCurrency tests --- zrml/asset-router/src/tests/multi_currency.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/zrml/asset-router/src/tests/multi_currency.rs b/zrml/asset-router/src/tests/multi_currency.rs index 5b1076cfb..2e94e27cd 100644 --- a/zrml/asset-router/src/tests/multi_currency.rs +++ b/zrml/asset-router/src/tests/multi_currency.rs @@ -35,6 +35,7 @@ fn multicurrency_test_helper( assert_ok!(AssetRouter::ensure_can_withdraw(asset, &ALICE, initial_amount)); assert!(AssetRouter::ensure_can_withdraw(asset, &ALICE, initial_amount + 1).is_err()); assert_ok!(AssetRouter::transfer(asset, &ALICE, &BOB, min_balance)); + assert_eq!(AssetRouter::free_balance(asset, &BOB), min_balance); assert_eq!(AssetRouter::free_balance(asset, &ALICE), initial_amount - min_balance); assert_ok!(AssetRouter::withdraw(asset, &ALICE, 1)); assert_eq!(AssetRouter::free_balance(asset, &ALICE), initial_amount - min_balance - 1);