Skip to content

Commit

Permalink
fix: handle grpc error
Browse files Browse the repository at this point in the history
  • Loading branch information
bdeneux committed May 4, 2022
1 parent 5d5b60a commit 7f35eb5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/send/send.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,13 @@ func Send(config util.Config, address string) error {
txBuilder.SetMemo(config.Memo)
txBuilder.SetFeeAmount(types.NewCoins(types.NewInt64Coin(config.Denom, config.FeeAmount)))

grpcConn, _ := grpc.Dial(
grpcConn, err := grpc.Dial(
config.GrpcAddress,
grpc.WithInsecure(),
)
if err != nil {
return err
}
defer grpcConn.Close()

account, err := GetAccount(grpcConn, fromAddr.String())
Expand Down

0 comments on commit 7f35eb5

Please sign in to comment.