Genesis 상태 구성하기
구성 단계 미리보기
팔레트에 스토리지 항목 추가하기
#[pallet::storage] #[pallet::getter(fn something)] pub type SingleValue<T: Config> = StorageValue< _, T::Balance >;#[pallet::storage] #[pallet::getter(fn accounts)] pub type AccountMap<T: Config> = StorageMap< _, Blake2_128Concat, T::AccountId, T::Balance >;
Genesis 구성 매크로 추가하기
초기 값 설정하기
예시
Last updated