From 40d6fcca1f553a1b4f2897c1c838c51fdc533340 Mon Sep 17 00:00:00 2001 From: magicalne Date: Wed, 13 Jul 2022 11:41:34 +0800 Subject: [PATCH] fix(config): enum type should be placed before tables --- crates/config/src/config.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/config/src/config.rs b/crates/config/src/config.rs index 83c09aa0e..63eeb33f2 100644 --- a/crates/config/src/config.rs +++ b/crates/config/src/config.rs @@ -20,6 +20,7 @@ pub enum Trace { #[derive(Clone, Default, Debug, PartialEq, Serialize, Deserialize)] pub struct Config { pub node_mode: NodeMode, + pub contract_log_config: ContractLogConfig, pub backend_switches: Vec, pub genesis: GenesisConfig, pub chain: ChainConfig, @@ -45,8 +46,6 @@ pub struct Config { pub dynamic_config: DynamicConfig, #[serde(default)] pub p2p_network_config: Option, - #[serde(default)] - pub contract_log_config: ContractLogConfig, } #[derive(Clone, Debug, PartialEq, Eq, Serialize, Deserialize, Hash)]