feat(sdk): Add custom TrieType (#20804)

Co-authored-by: jagroot <4516586+itschaindev@users.noreply.github.com>
This commit is contained in:
Emilia Hane
2026-01-08 12:53:27 +01:00
committed by GitHub
parent 7efaf4ca97
commit b38d37a1e1

View File

@@ -726,6 +726,8 @@ pub enum TrieType {
State,
/// Storage trie type.
Storage,
/// Custom trie type. Can be used in ExEx.
Custom(&'static str),
}
impl TrieType {
@@ -734,6 +736,7 @@ impl TrieType {
match self {
Self::State => "state",
Self::Storage => "storage",
Self::Custom(s) => s,
}
}
}