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
The text is not clear at all that you should add this to your file:
// Define type aliases for easier access
pub type AccountIdOf<T> = <T as frame_system::Config>::AccountId;
pub type AssetIdOf<T> = <<T as Config>::Fungibles as fungibles::Inspect<
<T as frame_system::Config>::AccountId,
>>::AssetId;
pub type BalanceOf<T> = <<T as Config>::NativeBalance as fungible::Inspect<
<T as frame_system::Config>::AccountId,
>>::Balance;
pub type AssetBalanceOf<T> = <<T as Config>::Fungibles as fungibles::Inspect<
<T as frame_system::Config>::AccountId,
>>::Balance;
So I didn't add it yet, and then wasn't getting the error mentioned below, and was very confused. I've added it now, just at the top of my file, but I'm not sure it should go there?
The last step is also not clear for adding the trait bounds for Fungibles. It says "define the Fungibles type in a similar way in order to fix the last error" so I added this:
That gets rid of the errors, but I'm not sure it's correct because the last line says "The Fungibles type needs to implement the traits from pallet assets" and I can't figure out where the traits are in that pallet, if there even are any.
Also, when I clicked on Show Answer, it just changed to correct and didn't show anything.
The text was updated successfully, but these errors were encountered:
The text is not clear at all that you should add this to your file:
So I didn't add it yet, and then wasn't getting the error mentioned below, and was very confused. I've added it now, just at the top of my file, but I'm not sure it should go there?
The last step is also not clear for adding the trait bounds for
Fungibles
. It says "define theFungibles
type in a similar way in order to fix the last error" so I added this:That gets rid of the errors, but I'm not sure it's correct because the last line says "The
Fungibles
type needs to implement the traits from pallet assets" and I can't figure out where the traits are in that pallet, if there even are any.Also, when I clicked on Show Answer, it just changed to correct and didn't show anything.
The text was updated successfully, but these errors were encountered: