Companion for Substrate #10719 (Into Account Truncating) (#1262)

* into account truncating

* more truncating

* Update Cargo.lock
This commit is contained in:
Shawn Tabrizi
2022-05-17 18:29:38 -04:00
committed by GitHub
parent 9b15f17391
commit 6ceca1d373
4 changed files with 294 additions and 359 deletions
@@ -407,7 +407,7 @@ pub mod pallet {
impl<T: Config> Pallet<T> {
/// Get a unique, inaccessible account id from the `PotId`.
pub fn account_id() -> T::AccountId {
T::PotId::get().into_account()
T::PotId::get().into_account_truncating()
}
/// Removes a candidate if they exist and sends them back their deposit