사용자 정의 가중치 사용하기
목표
사용 사례
단계
1. 팔레트의 weight.rs 파일에 WeightInfo trait 정의하기
weight.rs 파일에 WeightInfo trait 정의하기pub trait WeightInfo {
fn example(len: usize,) -> Weight;
}2. 팔레트에 WeightInfo 포함하기
WeightInfo 포함하기3. 사용자 정의 가중치 선언하기
4. Config trait impls에서 WeightInfo 타입 정의하기
Config trait impls에서 WeightInfo 타입 정의하기예시
관련 자료
Last updated