Skip to content

Invalid weight calculation for membership.update_accounts extrinsic #4535

@zeeshanakram3

Description

@zeeshanakram3

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingruntime

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions