From d5f9be7be31e6f595ef461e5a44d9a4251fb4c3d Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 18 Sep 2023 15:16:21 -0300 Subject: [PATCH 1/2] Set evm ed to 1 --- crates/humanode-runtime/src/lib.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/humanode-runtime/src/lib.rs b/crates/humanode-runtime/src/lib.rs index f30cca5f5..b524996d0 100644 --- a/crates/humanode-runtime/src/lib.rs +++ b/crates/humanode-runtime/src/lib.rs @@ -658,7 +658,7 @@ impl pallet_evm_balances::Config for Runtime { type RuntimeEvent = RuntimeEvent; type AccountId = EvmAccountId; type Balance = Balance; - type ExistentialDeposit = ConstU128<500>; + type ExistentialDeposit = ConstU128<1>; type AccountStore = EvmSystem; type DustRemoval = currency_swap::TreasuryPotProxy; } From 097236de8f2982aa7d425e5d6edc668da2a5dbfe Mon Sep 17 00:00:00 2001 From: MOZGIII Date: Mon, 18 Sep 2023 15:26:20 -0300 Subject: [PATCH 2/2] Correct the assertion at the fixed supply tests --- crates/humanode-runtime/src/tests/fixed_supply.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/crates/humanode-runtime/src/tests/fixed_supply.rs b/crates/humanode-runtime/src/tests/fixed_supply.rs index 713727995..bf689bf40 100644 --- a/crates/humanode-runtime/src/tests/fixed_supply.rs +++ b/crates/humanode-runtime/src/tests/fixed_supply.rs @@ -128,16 +128,18 @@ fn assert_total_issuance() { let evm_existential_deposit = <::ExistentialDeposit as Get>::get(); + let existential_deposit_balance = existential_deposit.max(evm_existential_deposit); + let total_issuance = Balances::total_issuance(); let evm_total_issuance = EvmBalances::total_issuance(); assert_eq!( total_issuance - native_to_evm_swap_bridge_pot, - evm_to_native_swap_bridge_pot - evm_existential_deposit + evm_to_native_swap_bridge_pot - existential_deposit_balance ); assert_eq!( evm_total_issuance - evm_to_native_swap_bridge_pot, - native_to_evm_swap_bridge_pot - existential_deposit + native_to_evm_swap_bridge_pot - existential_deposit_balance ); }