diff --git a/enshrine-esdt-safe/src/lib.rs b/enshrine-esdt-safe/src/lib.rs index 1d1ee725..bdc9c7ed 100644 --- a/enshrine-esdt-safe/src/lib.rs +++ b/enshrine-esdt-safe/src/lib.rs @@ -61,7 +61,7 @@ pub trait EnshrineEsdtSafe: self.initiator_address().set(caller); self.config() - .set(opt_config.unwrap_or_else(|| BridgeConfig::default_config())); + .set(opt_config.unwrap_or_else(BridgeConfig::default_config)); } #[only_owner]