From 34b466752aa943801fe0ce898adc077f9aebe927 Mon Sep 17 00:00:00 2001 From: Bryan White Date: Tue, 7 May 2024 12:35:53 +0200 Subject: [PATCH] chore: cleanup testutils --- testutil/testclient/localnet.go | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/testutil/testclient/localnet.go b/testutil/testclient/localnet.go index 8a487b385..262ccfe24 100644 --- a/testutil/testclient/localnet.go +++ b/testutil/testclient/localnet.go @@ -26,9 +26,11 @@ var ( // CometLocalWebsocketURL provides a default URL pointing to the localnet websocket endpoint. CometLocalWebsocketURL = "ws://localhost:36657/websocket" - // TxConfig provided by ... ? - TxConfig client.TxConfig - Marshaler codec.Codec + // TxConfig provided by app.AppConfig(), intended as a convenience for use in tests. + TxConfig client.TxConfig + // Marshaler provided by app.AppConfig(), intended as a convenience for use in tests. + Marshaler codec.Codec + // InterfaceRegistry provided by app.AppConfig(), intended as a convenience for use in tests. InterfaceRegistry codectypes.InterfaceRegistry ) @@ -39,10 +41,11 @@ func init() { deps := depinject.Configs( app.AppConfig(), depinject.Supply( - app.AppConfig(), log.NewLogger(os.Stderr), ), ) + + // Ensure that the global variables are initialized. if err := depinject.Inject( deps, &TxConfig,