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
remove unecessary println
  • Loading branch information
gpestana committed Apr 23, 2023
commit 530a0f6d9a42fe841ca7fc9ff103e27d8807c67c
6 changes: 1 addition & 5 deletions frame/election-provider-multi-phase/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1593,11 +1593,7 @@ impl<T: Config> Pallet<T> {

match <Snapshot<T>>::take() {
Some(_) if !set => Err("If the snapshot exists, the desired targets and snapshot metadata must also exist."),
None if set => {
println!("desired targets: {:?}", <DesiredTargets<T>>::get());
println!("snapshot metadata: {:?}", <SnapshotMetadata<T>>::get());
Err("If the snapshot does not exists, the desired targets and snapshot metadata should also not exists")
},
None if set => Err("If the snapshot does not exists, the desired targets and snapshot metadata should also not exists"),
_ => Ok(()),
}
}
Expand Down