(value: State)
| 98 | |
| 99 | impl From<State> for StorageOverride { |
| 100 | fn from(value: State) -> Self { |
| 101 | let (slots, diff) = match value { |
| 102 | State::Full { state } => (state, false), |
| 103 | State::Diff { state_diff } => (state_diff, true), |
| 104 | }; |
| 105 | |
| 106 | StorageOverride { |
| 107 | slots: slots |
| 108 | .into_iter() |
| 109 | .map(|(key, value)| (key, value.into())) |
| 110 | .collect(), |
| 111 | diff, |
| 112 | } |
| 113 | } |
| 114 | } |
| 115 | |
| 116 | #[derive(Debug, Clone, Serialize, Deserialize, PartialEq)] |
nothing calls this directly
no outgoing calls
no test coverage detected