I want to use the functions of pallet-asset
like decrease_balance
and Assets
storage in our custom pallet.
How I can perform this operation?
Thanks
loosely couple Assets
pallet with your custom pallet using fungibles::Unbalanced
trait. Then, simply T::Assets::decrease_balance()
inside your pallet.
#[pallet::config] trait Config: pallet_assets::Config { .. }
.
Commented
May 8 at 8:11