Amiya Behera
Amiya Behera

Reputation: 2270

ModuleId required for crowdfunding recipe is not present

The crowdfunding app has an import ModuleId

use sp_runtime::{
    traits::{AccountIdConversion, Saturating, Zero},
    ModuleId,
};

const PALLET_ID: ModuleId = ModuleId(*b"ex/cfund");

I am now using FRAME 2.0, sp_runtime no more contain ModuleId, what is the alternative for it?

unresolved import `sp_runtime::ModuleId`

Upvotes: 0

Views: 103

Answers (1)

Nuke
Nuke

Reputation: 1082

ModuleId -> PalletId Occurred here: https://github.com/paritytech/substrate/pull/8477

Upvotes: 4

Related Questions