Skip to main content

neo_devpack_solidity/runtime/storage/storage_impl/manager/
new.rs

1use super::*;
2
3impl StorageManager {
4    /// Create new storage manager
5    pub fn new(_config: &RuntimeConfig) -> Result<Self, RuntimeError> {
6        Ok(Self {
7            storage: HashMap::new(),
8            read_count: 0,
9            write_count: 0,
10            gas_costs: StorageGasCosts::default(),
11        })
12    }
13}