From 4ce0e65ce67d1eccfc8331703eccab18c518bc30 Mon Sep 17 00:00:00 2001 From: RedBird96 <73715579+RedBird96@users.noreply.github.com> Date: Tue, 18 Jun 2024 08:29:49 -0500 Subject: [PATCH] Fix bank query nil error (#129) Fix bank query error --- cmd/node/appchain.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cmd/node/appchain.go b/cmd/node/appchain.go index e33def0..20f7419 100644 --- a/cmd/node/appchain.go +++ b/cmd/node/appchain.go @@ -122,6 +122,9 @@ func NewAppChain(config AppChainConfig, log zerolog.Logger) (*AppChain, error) { // Create query client queryClient := emissionstypes.NewQueryClient(client.Context()) + // Create bank client + bankClient := banktypes.NewQueryClient(client.Context()) + // this is terrible, no isConnected as part of this code path if client.Context().ChainID == "" { return nil, nil @@ -133,6 +136,7 @@ func NewAppChain(config AppChainConfig, log zerolog.Logger) (*AppChain, error) { Logger: log, Client: client, EmissionsQueryClient: queryClient, + BankQueryClient: bankClient, Config: config, }