1

In the process of installing the democracy pallet in chain_spec.rs, I am importing like this:

use pichiu_runtime::{ 
    constants::currency::PCHU, DemocracyConfig};
}

I cannot reach the imports and get the following errors:

 --> node/src/chain_spec.rs:8:29
  |
8 |     constants::currency::PCHU, DemocracyConfig};
  |                                ^^^^^^^^^^^^^^^ no `DemocracyConfig` in the root

error[E0433]: failed to resolve: could not find `DemocracyConfig` in `pichiu_runtime`
   --> node/src/chain_spec.rs:280:30
    |
280 |         democracy: pichiu_runtime::DemocracyConfig::default(),
    |                                    ^^^^^^^^^^^^^^^ could not find `DemocracyConfig` in `pichiu_runtime`

I have tried to base myself off other parachains, polkadot and substrate code.

2

1 Answer 1

1

I think you have not implemented DemocracyConfig in runtime.

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.