2

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

1 Answer 1

1

loosely couple Assets pallet with your custom pallet using fungibles::Unbalanced trait. Then, simply T::Assets::decrease_balance() inside your pallet.

1
  • 1
    Or the same but tightly coupled, so #[pallet::config] trait Config: pallet_assets::Config { .. } .
    – kianenigma
    Commented May 8 at 8:11

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.