Skip to main content

neo_devpack_solidity/runtime/state/state_impl/
init.rs

1use super::*;
2
3impl StateManager {
4    /// Create new state manager
5    pub fn new(_config: &RuntimeConfig) -> Result<Self, RuntimeError> {
6        Ok(Self {
7            accounts: HashMap::new(),
8            snapshots: Vec::new(),
9            change_log: Vec::new(),
10            change_count: 0,
11        })
12    }
13}