Issue
update_accounts_both method call is being used in last match arm of the update_accounts extrinsic's weight calculation function, which is not correct as all combinations have been checked before this statement, so this match arm would be equivalent to both root & controller account missing, i.e. (false, false).
Fix
Use WeightInfoMembership::<T>::update_accounts_none() in the last match arm.
┆Issue is synchronized with this Asana task by Unito
Issue
update_accounts_both method call is being used in last match arm of the
update_accountsextrinsic's weight calculation function, which is not correct as all combinations have been checked before this statement, so this match arm would be equivalent to both root & controller account missing, i.e.(false, false).Fix
Use
WeightInfoMembership::<T>::update_accounts_none()in the last match arm.┆Issue is synchronized with this Asana task by Unito