mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-10 07:48:19 -05:00
feat(sdk): Add custom TrieType (#20804)
Co-authored-by: jagroot <4516586+itschaindev@users.noreply.github.com>
This commit is contained in:
@@ -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,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user