Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cant add Lockable Currency Pallet into super-runtime #443

Closed
CocDap opened this issue Jun 2, 2021 · 2 comments
Closed

Cant add Lockable Currency Pallet into super-runtime #443

CocDap opened this issue Jun 2, 2021 · 2 comments

Comments

@CocDap
Copy link

CocDap commented Jun 2, 2021

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
Copy link
Owner

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
Copy link
Author

CocDap commented Jun 2, 2021

Thanks you very much . It works @@

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants