From fa30adbd5bd29feb6e2e4e56e4f7c1c857be9990 Mon Sep 17 00:00:00 2001 From: ndkazu Date: Fri, 20 Sep 2024 23:16:21 +0900 Subject: [PATCH] Revert some modifications --- substrate/frame/distribution/src/functions.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/substrate/frame/distribution/src/functions.rs b/substrate/frame/distribution/src/functions.rs index 2a6344ea9143..e157356aedfa 100644 --- a/substrate/frame/distribution/src/functions.rs +++ b/substrate/frame/distribution/src/functions.rs @@ -77,14 +77,11 @@ impl Pallet { if check.is_ok() { // Create a new Spend let new_spend = SpendInfo::::new(&project); - match T::NativeBalance::hold( + let _ = T::NativeBalance::hold( &HoldReason::FundsReserved.into(), &pot, project.amount, - ) { - Ok(_x) => println!("Hold operation succeded!"), - Err(e) => println!("{:?}", e), - }; + ).expect("Funds Reserve Failed"); // Remove project from project_list projects.retain(|value| *value != project);