miden-protocol 0.14.3

Core components of the Miden protocol
Documentation
1
2
3
4
5
6
7
8
9
10
use crate::account::AccountType;
use crate::account::component::AccountComponentMetadata;

impl AccountComponentMetadata {
    /// Creates a mock [`AccountComponentMetadata`] with the given name that supports all account
    /// types.
    pub fn mock(name: &str) -> Self {
        AccountComponentMetadata::new(name, AccountType::all())
    }
}