Skip to content
This repository has been archived by the owner on Sep 4, 2024. It is now read-only.

Commit

Permalink
Fix bank query nil error (#129)
Browse files Browse the repository at this point in the history
Fix bank query error
  • Loading branch information
RedBird96 authored Jun 18, 2024
1 parent 1da9db5 commit 4ce0e65
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cmd/node/appchain.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -133,6 +136,7 @@ func NewAppChain(config AppChainConfig, log zerolog.Logger) (*AppChain, error) {
Logger: log,
Client: client,
EmissionsQueryClient: queryClient,
BankQueryClient: bankClient,
Config: config,
}

Expand Down

0 comments on commit 4ce0e65

Please sign in to comment.