-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Various minor fixes #13945
Various minor fixes #13945
Changes from all commits
b613055
94389bf
70e497b
924ddd1
cd8ad70
05aeac1
af41a3d
07119c0
5916c41
26ced3c
fb2ea99
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -788,7 +788,7 @@ pub mod pallet { | |
| return false | ||
| } | ||
| a.flags.set_new_logic(); | ||
| if !a.reserved.is_zero() || !a.frozen.is_zero() { | ||
| if !a.reserved.is_zero() && a.frozen.is_zero() { | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This logic here is essentially saying that frozen funds don't contribute any provider refs; is this true? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Well, it's that frozen funds already require a consumer ref in the original logic, so if we have non-zero frozen funds, then we already have the consumer we need (and if we have a consumer, we must have a provider). There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Ah ok, so it's reserved funds in the old logic that did not have a consumer, and so we have to add it here? |
||
| if system::Pallet::<T>::providers(who) == 0 { | ||
| // Gah!! We have no provider refs :( | ||
| // This shouldn't practically happen, but we need a failsafe anyway: let's give | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.