I'm using pallet-assets for my pallet, let's say custom-assets. In custom_assets::transfer
I make some additional business logic and call pallet_assets::transfer
. I want to make pallet_assets calls private so that logic wouldn't fail because no one can call pallet_assets::transfer
with my custom asset directly.
What I intend to do: just modify pallet-assets and move extrinsic pallet_assets::transfer
from #[pallet::call] impl<T: Config> Pallet<T> {
to impl<T: Config> Pallet<T> {
- but this removes any info about weights, and maybe has another consequences.
Is it a good idea to do so? what can I do with weights? are there any other consequences? and maybe there is another better option to forbid direct pallet_assets::transfer
extrinsic call?