Skip to content
This repository was archived by the owner on Nov 15, 2023. It is now read-only.
Merged
Show file tree
Hide file tree
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
Fixes
  • Loading branch information
gavofyork committed Dec 15, 2022
commit f9cace3c756b97833af34fb8255b2b7d17e428e7
1 change: 0 additions & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions frame/nis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ readme = "README.md"
targets = ["x86_64-unknown-linux-gnu"]

[dependencies]
log = { version = "0.4.17", default-features = false, optional = true }
codec = { package = "parity-scale-codec", version = "3.0.0", default-features = false, features = ["derive"] }
scale-info = { version = "2.1.1", default-features = false, features = ["derive"] }
frame-benchmarking = { version = "4.0.0-dev", default-features = false, optional = true, path = "../benchmarking" }
Expand All @@ -31,7 +30,6 @@ sp-io = { version = "7.0.0", path = "../../primitives/io" }
[features]
default = ["std"]
std = [
"log/std",
"codec/std",
"frame-benchmarking?/std",
"frame-support/std",
Expand All @@ -43,7 +41,6 @@ std = [
"sp-std/std",
]
runtime-benchmarks = [
"log",
"frame-benchmarking/runtime-benchmarks",
"frame-support/runtime-benchmarks",
"frame-system/runtime-benchmarks",
Expand Down
11 changes: 0 additions & 11 deletions frame/nis/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -710,15 +710,6 @@ pub mod pallet {

let dropped = receipt.proportion.is_zero();

let reserved = T::Currency::reserved_balance_named(&T::ReserveId::get(), &who);
log::info!(
"{:?} {:?} {:?} {:?}",
amount,
on_hold,
reserved,
Self::issuance_with(&our_account, &summary)
);

if amount > on_hold {
T::Currency::unreserve_named(&T::ReserveId::get(), &who, on_hold);
let deficit = amount - on_hold;
Expand Down Expand Up @@ -813,8 +804,6 @@ pub mod pallet {

summary.proportion_owed.saturating_reduce(receipt.proportion);

log::info!("{:?} {:?}", amount, Self::issuance_with(&our_account, &summary));

// Try to transfer amount owed from pot to receipt owner.
T::Currency::transfer(&our_account, &who, amount, AllowDeath)
.map_err(|_| Error::<T>::Unfunded)?;
Expand Down