I heard there is something called Dev Mode in Substrate for pallet development.
What is Dev Mode? And how can I use it?
Substrate and Polkadot Stack Exchange is a question and answer site for developers building blockchains with the Substrate SDK. It only takes a minute to sign up.Sign up to join this community
Dev Mode is for developer-friendliness for ease of pallet development and rapidly testing core business logic before cementing it in with proper benchmarking and bounding storage.
Not to be used for production!
One can enable a pallet with Dev Mode by making the following change in their pallet's
- #[frame_support::pallet] + #[frame_support::pallet(dev_mode)]
With Dev Mode enabled you can have a weight of zero i.e.
#[pallet::weight(0)] and you do not have to
MaxEncodedLen on storage types.
Read the fulls docs on Dev Mode:
Dev Mode was also first covered in the Polkadot Release Analysis v0.9.33: