From 4d3f6a202e0eadf97285aeb1a4667a0f87add1d4 Mon Sep 17 00:00:00 2001 From: Shawn Tabrizi Date: Fri, 18 Mar 2022 11:06:45 -0400 Subject: [PATCH] Remove Superfluous Test in Crowdloan Migration (#5158) * remove stupid check * here too --- polkadot/runtime/common/src/crowdloan/migration.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/polkadot/runtime/common/src/crowdloan/migration.rs b/polkadot/runtime/common/src/crowdloan/migration.rs index 478471454f..560624744a 100644 --- a/polkadot/runtime/common/src/crowdloan/migration.rs +++ b/polkadot/runtime/common/src/crowdloan/migration.rs @@ -53,7 +53,6 @@ pub mod crowdloan_index_migration { total_balance >= fund.raised, "Total balance is not equal to the funds raised." ); - ensure!(total_balance > Zero::zero(), "Total balance is equal to zero."); } Ok(()) @@ -122,7 +121,6 @@ pub mod crowdloan_index_migration { total_balance >= fund.raised, "Total balance in new account is different than the funds raised." ); - ensure!(total_balance > Zero::zero(), "Total balance in the account is zero."); } Ok(())