diff --git a/crates/sui-types/src/deny_list_v2.rs b/crates/sui-types/src/deny_list_v2.rs index bf0be1e57fd138..c48d19b59ee8bd 100644 --- a/crates/sui-types/src/deny_list_v2.rs +++ b/crates/sui-types/src/deny_list_v2.rs @@ -21,13 +21,13 @@ pub struct Config { /// Rust representation of the Move type 0x2::config::Setting. #[derive(Debug, Serialize, Deserialize, Clone)] -struct Setting { +struct Setting { data: Option>, } /// Rust representation of the Move type 0x2::config::SettingData. #[derive(Debug, Serialize, Deserialize, Clone)] -struct SettingData { +struct SettingData { newer_value_epoch: u64, newer_value: V, older_value_opt: Option, @@ -116,7 +116,7 @@ fn read_config_setting( ) -> Option where K: MoveTypeTagTrait + Serialize + DeserializeOwned + fmt::Debug, - V: Copy + fmt::Debug + Serialize + DeserializeOwned, + V: Clone + fmt::Debug + Serialize + DeserializeOwned, { let setting: Setting = { match get_dynamic_field_from_store(object_store, *config.id.object_id(), &setting_name) {