diff --git a/crates/iota-types/src/iota_system_state/iota_system_state_inner_v1.rs b/crates/iota-types/src/iota_system_state/iota_system_state_inner_v1.rs index 3f704259053..484510b17ae 100644 --- a/crates/iota-types/src/iota_system_state/iota_system_state_inner_v1.rs +++ b/crates/iota-types/src/iota_system_state/iota_system_state_inner_v1.rs @@ -160,7 +160,9 @@ impl ValidatorMetadataV1 { let primary_address = Multiaddr::try_from(self.primary_address.clone()) .map_err(|_| E_METADATA_INVALID_PRIMARY_ADDR)?; - if !primary_address.is_loosely_valid_tcp_addr() || !primary_address.is_loosely_valid_udp_addr() { + if !primary_address.is_loosely_valid_tcp_addr() + || !primary_address.is_loosely_valid_udp_addr() + { return Err(E_METADATA_INVALID_PRIMARY_ADDR); }