Skip to content

Commit

Permalink
Revert some modifications
Browse files Browse the repository at this point in the history
  • Loading branch information
ndkazu committed Sep 20, 2024
1 parent 635526e commit fa30adb
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions substrate/frame/distribution/src/functions.rs
Original file line number Diff line number Diff line change
Expand Up @@ -77,14 +77,11 @@ impl<T: Config> Pallet<T> {
if check.is_ok() {
// Create a new Spend
let new_spend = SpendInfo::<T>::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);
Expand Down

0 comments on commit fa30adb

Please sign in to comment.