Resolve account IDs in a map to account references.
(
&self,
m: BTreeMap<AccountId, T>,
)
| 213 | |
| 214 | /// Resolve account IDs in a map to account references. |
| 215 | fn account_map<T>( |
| 216 | &self, |
| 217 | m: BTreeMap<AccountId, T>, |
| 218 | ) -> anyhow::Result<BTreeMap<&M::Account, T>> { |
| 219 | m.into_iter() |
| 220 | .map(|(id, x)| self.account(&id).map(|a| (a, x))) |
| 221 | .collect() |
| 222 | } |
| 223 | |
| 224 | /// Create a genesis for the rootnet nodes. |
| 225 | /// |
no test coverage detected