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
In the add add_new_team extrinsic we are mutating the storage and assuming the owner of the team to add exists in storage. We need to change this as causes panic in tests.
We probably need to insert into the storage directly or make sure when we are mutating, we don't return an error when value does not exist and just insert into storage for the add_new_teamextrinsic
The text was updated successfully, but these errors were encountered:
In the add
add_new_team
extrinsic we are mutating the storage and assuming the owner of the team to add exists in storage. We need to change this as causes panic in tests.Reference is in this part of the code https://github.com/totem-tech/totem-parachains/blob/add-back-totem-pallets/pallets/teams/src/lib.rs#L154
We probably need to insert into the storage directly or make sure when we are mutating, we don't return an error when value does not exist and just insert into storage for the
add_new_team
extrinsicThe text was updated successfully, but these errors were encountered: