You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Goal: bring to attention the existential deposit for the module account project token
Running the following snippet
#[cfg(feature = "try-runtime")]fnpre_upgrade() -> Result<Vec<u8>,&'static str>{let onchain = Pallet::<T>::on_chain_storage_version();ensure!(onchain < 1, "this migration can be deleted");let module_account_id = Module::<T>::module_treasury_account();let treasury_free_balance = Joy::<T>::free_balance(&module_account_id);log!(
info,
"treasury_free_balance pre migration: {:?}",
treasury_free_balance
);log!(
info,
"existential deposit: {:?}",
T::JoyExistentialDeposit::get());ensure!(
treasury_free_balance.is_zero(),
"module treasury account is not zero");ensure!(
treasury_free_balance.is_zero(),
"module treasury account is not zero");Ok(vec![])}
```
Produces the following result against live mainnet
Oct 18 10:36:32.785 INFO runtime::project_token: [4491309] 📹 treasury_free_balance pre migration: 266666560
Oct 18 10:36:32.785 INFO runtime::project_token: [4491309] 📹 existential deposit: 266666560
Hence the account is already pre-loaded with the existential deposit
┆Issue is synchronized with this [Asana task](https://app.asana.com/0/1204404358291458/1205746713035377) by [Unito](https://www.unito.io)
The text was updated successfully, but these errors were encountered:
Goal: bring to attention the existential deposit for the module account project token
Running the following snippet
Oct 18 10:36:32.785 INFO runtime::project_token: [4491309] 📹 treasury_free_balance pre migration: 266666560
Oct 18 10:36:32.785 INFO runtime::project_token: [4491309] 📹 existential deposit: 266666560
The text was updated successfully, but these errors were encountered: