Skip to content

Commit

Permalink
using existential balance == 0
Browse files Browse the repository at this point in the history
  • Loading branch information
asiniscalchi committed Nov 10, 2023
1 parent 0bfa523 commit e7b23ab
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ownership-chain/runtime/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ frame-system-rpc-runtime-api = { workspace = true }
frame-try-runtime = { workspace = true, optional = true }
pallet-aura = { workspace = true }
pallet-authorship = { workspace = true }
pallet-balances = { workspace = true }
pallet-balances = { workspace = true , features = ["insecure_zero_ed"] }
pallet-session = { workspace = true }
pallet-sudo = { workspace = true }
pallet-timestamp = { workspace = true }
Expand Down
2 changes: 1 addition & 1 deletion ownership-chain/runtime/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ parameter_types! {
/// behaviour if you set this to zero.
///
/// Bottom line: Do yourself a favour and make it at least one!
pub const ExistentialDeposit: Balance = 1;
pub const ExistentialDeposit: Balance = 0;
}

impl pallet_balances::Config for Runtime {
Expand Down
3 changes: 2 additions & 1 deletion ownership-chain/runtime/src/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,5 +64,6 @@ fn asset_id_to_address_two_assets_same_owner() {

#[test]
fn minimum_balance_should_be_1() {
assert_eq!(Balances::minimum_balance(), 1);
assert_eq!(Balances::minimum_balance(), 0);
}

0 comments on commit e7b23ab

Please sign in to comment.