Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update frame/nis/src/lib.rs
Co-authored-by: Oliver Tale-Yazdi <[email protected]>
  • Loading branch information
gavofyork and ggwpez authored Jan 16, 2023
commit fab2f6f5b511c933b7f5f3e7f781b2a3e1e5005b
2 changes: 1 addition & 1 deletion frame/nis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -885,7 +885,7 @@ pub mod pallet {
// Transfer the funds from the pot to the owner and reserve
T::Currency::transfer(&Self::account_id(), &who, amount, AllowDeath)
.map_err(|_| Error::<T>::Unfunded)?; //< Requires transactional storage TODO: OK?
T::Currency::reserve_named(&T::ReserveId::get(), &who, amount)?; //< Requires transactional storage TODO: OK?
T::Currency::reserve_named(&T::ReserveId::get(), &who, amount)?;
// TODO: ^^^ The above should be done in a single operation `transfer_and_hold`.

// Record that we've moved the amount reserved.
Expand Down