JoshOrndorff / recipes

A Hands-On Cookbook for Aspiring Blockchain Chefs
GNU General Public License v3.0
378 stars 188 forks source link

Cant add Lockable Currency Pallet into super-runtime #443

Closed CocDap closed 2 years ago

CocDap commented 3 years ago

When I implement Currency trait. Your recipes give 3 example about Currency (Reserve, Lockable, Imbalance).But when i add Lockable Currency pallet into super-runtime -> It is error image

p/s: I dont modify in lockable-currency pallet, i only define it in super-runtime (lib.rs) and add path pallet in Cargo.toml (in super-runtime)

Can anyone help me ? Thank you

JoshOrndorff commented 3 years ago

This is a no_std issue. Thank you for finding it!

Lockable currency needs a line like this https://github.com/substrate-developer-hub/recipes/blob/master/pallets/reservable-currency/src/lib.rs#L3

Also Lockable Currency should have been installed in the super runtime.

If you can add this line and add the pallet to the runtime, I would really appreciate your PR :)

CocDap commented 3 years ago

Thanks you very much . It works @@