From 818baeeac77d89a8baecfc2573da4429e63bc623 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Tue, 14 Jan 2025 09:37:07 +0100 Subject: [PATCH 1/2] docs(depinject): clarify how to wrap module --- depinject/appconfig/module.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/depinject/appconfig/module.go b/depinject/appconfig/module.go index 666a4739f97d..686d7fa7358c 100644 --- a/depinject/appconfig/module.go +++ b/depinject/appconfig/module.go @@ -17,6 +17,10 @@ var Register = RegisterModule // will be injected into the container and can be requested by a provider // function. All module initialization should be handled by the provided options. // +// In some cases, a module may need to be manually overwritten from the global module +// registry. This can be done by calling RegisterModule again with the same config, +// but different options. This is useful when wrapping default modules. +// // Protobuf message types used for module configuration should define the // cosmos.app.v1alpha.module option and must explicitly specify go_package // to make debugging easier for users. From d49afe14bb11cdff0a739d9f0a3e2f1e0a9f5a66 Mon Sep 17 00:00:00 2001 From: Julien Robert Date: Tue, 14 Jan 2025 15:33:09 +0100 Subject: [PATCH 2/2] Update depinject/appconfig/module.go Co-authored-by: Alex | Interchain Labs --- depinject/appconfig/module.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/depinject/appconfig/module.go b/depinject/appconfig/module.go index 686d7fa7358c..ce6f93337ed0 100644 --- a/depinject/appconfig/module.go +++ b/depinject/appconfig/module.go @@ -19,7 +19,7 @@ var Register = RegisterModule // // In some cases, a module may need to be manually overwritten from the global module // registry. This can be done by calling RegisterModule again with the same config, -// but different options. This is useful when wrapping default modules. +// but different options. This is useful when wrapping or overriding default modules. // // Protobuf message types used for module configuration should define the // cosmos.app.v1alpha.module option and must explicitly specify go_package