miden-protocol 0.14.3

Core components of the Miden protocol
Documentation
1
2
3
4
5
6
7
8
use crate::account::StorageSlotName;

impl StorageSlotName {
    /// Returns a new slot name with the format `"miden::test::slot::{index}"`.
    pub fn mock(index: usize) -> Self {
        Self::new(format!("miden::test::slot::{index}")).expect("storage slot name should be valid")
    }
}