Skip to content

Commit

Permalink
chore: cleanup testutils
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanchriswhite committed May 7, 2024
1 parent d071a06 commit 34b4667
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions testutil/testclient/localnet.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
)

Expand All @@ -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,
Expand Down

0 comments on commit 34b4667

Please sign in to comment.