radix_engine/system/
node_init.rs

1use crate::internal_prelude::*;
2use crate::system::type_info::TypeInfoSubstate;
3use radix_engine_interface::types::SubstateKey;
4
5pub fn type_info_partition(info: TypeInfoSubstate) -> BTreeMap<SubstateKey, IndexedScryptoValue> {
6    BTreeMap::from([(
7        TypeInfoField::TypeInfo.into(),
8        IndexedScryptoValue::from_typed(&info),
9    )])
10}