diff --git a/radix-engine-interface/src/api/object_api.rs b/radix-engine-interface/src/api/object_api.rs index b35724aa144..391820ac98b 100644 --- a/radix-engine-interface/src/api/object_api.rs +++ b/radix-engine-interface/src/api/object_api.rs @@ -109,7 +109,10 @@ impl ModuleId { } #[repr(u8)] -#[cfg_attr(feature = "radix_engine_fuzzing", derive(Arbitrary))] +#[cfg_attr( + feature = "radix_engine_fuzzing", + derive(Arbitrary, serde::Serialize, serde::Deserialize) +)] #[derive( Debug, Clone, diff --git a/simulator/src/scrypto_bindgen/mod.rs b/simulator/src/scrypto_bindgen/mod.rs index 7eb38601ab1..1744d8020f7 100644 --- a/simulator/src/scrypto_bindgen/mod.rs +++ b/simulator/src/scrypto_bindgen/mod.rs @@ -117,7 +117,10 @@ where S: SubstateDatabase, { fn lookup_schema(&self, schema_hash: &SchemaHash) -> Option { - self.1.get_schema(self.0.as_node_id(), schema_hash).ok().map(|x| x.as_ref().clone()) + self.1 + .get_schema(self.0.as_node_id(), schema_hash) + .ok() + .map(|x| x.as_ref().clone()) } fn resolve_type_kind(