Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Default Config is not able to provide defaults for types that access other associated types #14473

Closed
gupnik opened this issue Jun 28, 2023 · 3 comments

Comments

@gupnik
Copy link
Contributor

gupnik commented Jun 28, 2023

Seems like this is an issue with derive_impl. I see this error when I try to remove pallet::no_default:
the trait bound `Self: pallet::Config` is not satisfied.
CC: @sam0x17

Originally posted by @gupnik in #14437 (comment)

@gupnik gupnik changed the title Seems like this is an issue with derive_impl. I see this error when I try to remove pallet::no_default: Default Config is not able to provide defaults for types that access other associated types Jun 28, 2023
@gupnik
Copy link
Contributor Author

gupnik commented Jun 28, 2023

As an example, BlockHashCount when retrieved from Block leads to this error.

@bkchr
Copy link
Member

bkchr commented Jun 28, 2023

Already tracked in this issue: paritytech/polkadot-sdk#171

@bkchr bkchr closed this as completed Jun 28, 2023
@sam0x17
Copy link
Contributor

sam0x17 commented Jul 4, 2023

potential solution here: #14437 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
Status: Done
Development

No branches or pull requests

3 participants