mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-04-30 15:27:57 +00:00
Do not allow zero Existential Deposit when using Balances (#4894)
* Add non-zero ed check on Balances genesis * Update ED from 0 to 1 * bump impl * bump spec * Found remove more ed = 0 * Fix some contract tests * Use ctx.overlay.set_balance for contracts * Fix staking test * Remove obsolete logic * Allow death of payout account in society * Update frame/balances/src/lib.rs Co-Authored-By: Bastian Köcher <bkchr@users.noreply.github.com> * Dont create genesis balances if balance is zero in transaction payment pallet Co-authored-by: Bastian Köcher <bkchr@users.noreply.github.com> Co-authored-by: Gavin Wood <github@gavwood.com>
This commit is contained in:
@@ -2066,7 +2066,8 @@ fn slash_in_old_span_does_not_deselect() {
|
||||
),
|
||||
reporters: vec![],
|
||||
}],
|
||||
&[Perbill::from_percent(100)],
|
||||
// NOTE: A 100% slash here would clean up the account, causing de-registration.
|
||||
&[Perbill::from_percent(95)],
|
||||
1,
|
||||
);
|
||||
|
||||
@@ -2272,7 +2273,7 @@ fn only_slash_for_max_in_era() {
|
||||
|
||||
#[test]
|
||||
fn garbage_collection_after_slashing() {
|
||||
ExtBuilder::default().existential_deposit(1).build().execute_with(|| {
|
||||
ExtBuilder::default().existential_deposit(2).build().execute_with(|| {
|
||||
assert_eq!(Balances::free_balance(11), 256_000);
|
||||
|
||||
on_offence_now(
|
||||
|
||||
Reference in New Issue
Block a user