This repository has been archived by the owner on Nov 15, 2023. It is now read-only.
Remove *_old_weight
extrinsic after migration to extrinsics with new Weight
struct is complete
#12377
Labels
I7-refactor
Code needs refactoring.
In #12277, we created new extrinsics that utilizes the new 2D
Weight
struct as part of its parameters, and deprecated those that still uses the oldWeight
struct. The deprecated extrinsics are renamed and they all end with_old_weight
. We have chosen this method of migration because we want to allow downstream dependencies to still be able to decode into the deprecated calls, but warn upon calling them.The migration strategy we have for now is to allow downstream dependencies to call the deprecated extrinsics, and allow them to migrate to the new ones. After a certain length of time, we should however work towards:
OldWeight
struct#[pallet::call_index]
attribute).The text was updated successfully, but these errors were encountered: